@@ -23,24 +23,6 @@ namespace beman::task::detail {
2323template <::beman::task::detail::stoppable Stop, typename Value, typename ErrorCompletions>
2424class promise_base ;
2525
26- #if 0
27- template <::beman::task::detail::stoppable Stop, typename Value>
28- requires(not ::std::same_as<Value, void>)
29- class promise_base<Stop, Value, ::beman::execution::completion_signatures<>>
30- : public ::beman::task::detail::result_type<Stop, Value> {
31- public:
32- /*
33- * \brief Set the value result.
34- * \internal
35- */
36- template <typename T>
37- void return_value(T&& value) {
38- ::beman::task::detail::logger l("promise_base::return_value(T&&)");
39- this->set_value(::std::forward<T>(value));
40- }
41- };
42- #endif
43-
4426template <::beman::task::detail::stoppable Stop, typename Value, typename ... Error>
4527 requires (not ::std::same_as<Value, void >)
4628class promise_base <Stop, Value, ::beman::execution::completion_signatures<::beman::execution::set_error_t (Error)...>>
@@ -50,39 +32,21 @@ class promise_base<Stop, Value, ::beman::execution::completion_signatures<::bema
5032 * \brief Set the value result.
5133 * \internal
5234 */
53- ::beman::task::detail::logger l{" promise_base<T>" };
5435 template <typename T>
5536 void return_value (T&& value) {
5637 ::beman::task::detail::logger l (" promise_base::return_value(T&&)" );
5738 this ->set_value (::std::forward<T>(value));
5839 }
5940};
6041
61- #if 0
62- template <typename ::beman::task::detail::stoppable Stop>
63- class promise_base<Stop, void, ::beman::execution::completion_signatures<>>
64- : public ::beman::task::detail::result_type<Stop, void_type> {
65- public:
66- /*
67- * \brief Set the value result although without any value.
68- */
69- ::beman::task::detail::logger l{"promise_base<void>"};
70- void return_void() {
71- ::beman::task::detail::logger l("promise_base::return_void()");
72- this->set_value(void_type{});
73- }
74- };
75- #endif
76-
7742template <typename ::beman::task::detail::stoppable Stop, typename ... Error>
7843class promise_base <Stop, void , ::beman::execution::completion_signatures<::beman::execution::set_error_t (Error)...>>
7944 : public ::beman::task::detail::result_type<Stop, void_type, Error...> {
8045 public:
8146 /*
8247 * \brief Set the value result although without any value.
8348 */
84- ::beman::task::detail::logger l{" promise_base<void>" };
85- void return_void () {
49+ void return_void () {
8650 ::beman::task::detail::logger l (" promise_base::return_void()" );
8751 this ->set_value (void_type{});
8852 }
0 commit comments