Skip to content

Commit d78336d

Browse files
authored
fix a bug about the type trait beman::execution::detail::is_set_stopped (#136)
1 parent a8d2b34 commit d78336d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

include/beman/execution/detail/completion_signature.hpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@ struct is_set_error : ::std::false_type {};
1717
template <typename Error>
1818
struct is_set_error<::beman::execution::set_error_t(Error)> : ::std::true_type {};
1919

20-
template <typename>
21-
struct is_set_stopped : ::std::false_type {};
22-
template <>
23-
struct is_set_error<::beman::execution::set_stopped_t()> : ::std::true_type {};
20+
template <typename Fun>
21+
using is_set_stopped = ::std::is_same<Fun, ::beman::execution::set_stopped_t()>;
2422

2523
template <typename>
2624
struct is_set_value : ::std::false_type {};

0 commit comments

Comments
 (0)