mirror of
https://github.com/Naios/continuable.git
synced 2025-12-07 01:06:44 +08:00
Some cleanups in the any composition
This commit is contained in:
parent
8f69198651
commit
201a2fc17c
@ -66,15 +66,6 @@ class any_result_submitter
|
||||
void operator()(PartialArgs&&... args) && {
|
||||
me_->invoke(std::forward<decltype(args)>(args)...);
|
||||
}
|
||||
|
||||
template <typename... PartialArgs>
|
||||
void set_value(PartialArgs&&... args) {
|
||||
std::move (*this)(std::forward<PartialArgs>(args)...);
|
||||
}
|
||||
|
||||
void set_exception(types::error_type error) {
|
||||
std::move (*this)(types::dispatch_error_tag{}, std::move(error));
|
||||
}
|
||||
};
|
||||
|
||||
public:
|
||||
@ -148,8 +139,8 @@ struct result_deducer {
|
||||
static auto deduce(traversal::container_category_tag<false, true>,
|
||||
traits::identity<T> id) {
|
||||
|
||||
std::make_index_sequence<std::tuple_size<T>::value> constexpr const i{};
|
||||
return deduce_tuple_like(i, id);
|
||||
constexpr auto const size = std::tuple_size<T>::value;
|
||||
return deduce_tuple_like(std::make_index_sequence<size>{}, id);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user