diff --git a/include/continuable/detail/composition-all.hpp b/include/continuable/detail/composition-all.hpp index 0779343..66049fb 100644 --- a/include/continuable/detail/composition-all.hpp +++ b/include/continuable/detail/composition-all.hpp @@ -191,28 +191,12 @@ struct all_hint_deducer { } }; -template -struct is_tuple : std::false_type {}; -template -struct is_tuple> : std::true_type {}; - -/// Converts the given argument to a tuple if it isn't a tuple already -template ::value>* = nullptr> -constexpr auto tupelize(T&& arg) { - return std::make_tuple(std::forward(arg)); -} -/// Converts the given argument to a tuple if it isn't a tuple already -template -constexpr auto tupelize(std::tuple arg) { - return std::move(arg); -} - constexpr auto deduce_from_pack(traits::identity) -> hints::signature_hint_tag<>; template constexpr auto deduce_from_pack(traits::identity>) -> hints::signature_hint_tag; -template ::value>* = nullptr> +template constexpr auto deduce_from_pack(traits::identity) -> hints::signature_hint_tag; @@ -277,6 +261,14 @@ struct composition_finalizer { }); }; } + + template + static auto finalize_new(Composition&& composition) { + return [composition = std::forward(composition)]( + auto&& callback) mutable { + // TODO + }; + } }; } // namespace composition } // namespace detail