mirror of
https://github.com/Naios/continuable.git
synced 2025-12-06 16:56:44 +08:00
Update connection-seq.hpp
This was causing error on usage of when seq :: "result is not a type name static or enumerator"
This commit is contained in:
parent
ace3317f65
commit
2fcc2bf281
@ -147,24 +147,24 @@ struct connection_finalizer<connection_strategy_seq_tag> {
|
|||||||
template <typename Connection>
|
template <typename Connection>
|
||||||
static auto finalize(Connection&& connection, util::ownership ownership) {
|
static auto finalize(Connection&& connection, util::ownership ownership) {
|
||||||
|
|
||||||
auto result =
|
auto res =
|
||||||
aggregated::box_continuables(std::forward<Connection>(connection));
|
aggregated::box_continuables(std::forward<Connection>(connection));
|
||||||
|
|
||||||
auto signature = aggregated::hint_of_data<decltype(result)>();
|
auto signature = aggregated::hint_of_data<decltype(res)>();
|
||||||
|
|
||||||
return base::attorney::create_from(
|
return base::attorney::create_from(
|
||||||
[result = std::move(result)](auto&& callback) mutable {
|
[res = std::move(res)](auto&& callback) mutable {
|
||||||
// The data from which the visitor is constructed in-place
|
// The data from which the visitor is constructed in-place
|
||||||
using data_t =
|
using data_t =
|
||||||
seq::sequential_dispatch_data<std::decay_t<decltype(callback)>,
|
seq::sequential_dispatch_data<std::decay_t<decltype(callback)>,
|
||||||
std::decay_t<decltype(result)>>;
|
std::decay_t<decltype(res)>>;
|
||||||
|
|
||||||
// The visitor type
|
// The visitor type
|
||||||
using visitor_t = seq::sequential_dispatch_visitor<data_t>;
|
using visitor_t = seq::sequential_dispatch_visitor<data_t>;
|
||||||
|
|
||||||
traverse_pack_async(async_traverse_in_place_tag<visitor_t>{},
|
traverse_pack_async(async_traverse_in_place_tag<visitor_t>{},
|
||||||
data_t{std::forward<decltype(callback)>(callback),
|
data_t{std::forward<decltype(callback)>(callback),
|
||||||
std::move(result)});
|
std::move(res)});
|
||||||
},
|
},
|
||||||
signature, std::move(ownership));
|
signature, std::move(ownership));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user