Commit 492348f 1 parent 54059ae commit 492348f Copy full SHA for 492348f
File tree 5 files changed +15
-9
lines changed
include/beman/execution26/detail
src/beman/execution26/tests
5 files changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -72,25 +72,25 @@ namespace beman::execution26::detail
72
72
#if __cpp_explicit_this_parameter < 202110L
73
73
template <typename Env>
74
74
auto get_completion_signatures (Env&&) &&
75
- -> ::beman::execution26::detail::completion_signatures_for<basic_sender&& , Env>
75
+ -> ::beman::execution26::detail::completion_signatures_for<basic_sender, Env>
76
76
{
77
77
return {};
78
78
}
79
79
template <typename Env>
80
80
auto get_completion_signatures (Env&&) const &&
81
- -> ::beman::execution26::detail::completion_signatures_for<basic_sender const && , Env>
81
+ -> ::beman::execution26::detail::completion_signatures_for<basic_sender, Env>
82
82
{
83
83
return {};
84
84
}
85
85
template <typename Env>
86
86
auto get_completion_signatures (Env&&) &
87
- -> ::beman::execution26::detail::completion_signatures_for<basic_sender& , Env>
87
+ -> ::beman::execution26::detail::completion_signatures_for<basic_sender, Env>
88
88
{
89
89
return {};
90
90
}
91
91
template <typename Env>
92
92
auto get_completion_signatures (Env&&) const &
93
- -> ::beman::execution26::detail::completion_signatures_for<basic_sender const & , Env>
93
+ -> ::beman::execution26::detail::completion_signatures_for<basic_sender, Env>
94
94
{
95
95
return {};
96
96
}
Original file line number Diff line number Diff line change 8
8
9
9
#if defined(__GNUC__)
10
10
# pragma GCC diagnostic ignored "-Wmissing-braces"
11
+ # pragma GCC diagnostic ignored "-Wmissing-field-initializers"
11
12
#endif
12
13
13
14
#if defined(__clang__)
Original file line number Diff line number Diff line change 2
2
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3
3
4
4
list (APPEND execution_tests
5
- meta-transform.pass
6
5
exec-then.pass
6
+ exec-just.pass
7
+ meta-transform.pass
7
8
exec-read-env.pass
8
9
exec-get -delegation-scheduler.pass
9
10
exec-snd-apply.pass
@@ -12,7 +13,6 @@ list(APPEND execution_tests
12
13
exec-into-variant.pass
13
14
exec-run-loop-types.pass
14
15
exec-run-loop-general.pass
15
- exec-just.pass
16
16
exec-snd-expos.pass
17
17
exec-recv-concepts.pass
18
18
forward-like.pass
Original file line number Diff line number Diff line change @@ -181,4 +181,8 @@ auto main() -> int
181
181
{
182
182
test_just_constraints ();
183
183
test_just ();
184
+ using type = test_detail::call_result_t <test_std::get_completion_signatures_t ,
185
+ decltype (test_std::just ()), test_std::empty_env>;
186
+
187
+ static_assert (std::same_as<test_std::completion_signatures<test_std::set_value_t ()>, type>);
184
188
}
Original file line number Diff line number Diff line change @@ -62,11 +62,11 @@ namespace
62
62
test_std::completion_signatures<Completions...>,
63
63
test_std::completion_signatures_of_t <decltype (sender), test_std::empty_env>
64
64
>);
65
- };
65
+ }
66
66
67
67
auto test_then_type () -> void
68
68
{
69
- test_then_type< test_std::set_value_t ()>(test_std::just () | test_std::then ([]{}));
69
+ test_then_type< test_std::set_value_t ()>(test_std::just (0 ) | test_std::then ([]( auto ) {}));
70
70
test_then_type< test_std::set_value_t (int )>(test_std::just () | test_std::then ([]{ return 0 ; }));
71
71
test_then_type< test_std::set_error_t (int )>(test_std::just_error (0 ) | test_std::then ([]{ return 0 ; }));
72
72
test_then_type< test_std::set_stopped_t ()>(test_std::just_stopped () | test_std::then ([]{ return 0 ; }));
@@ -150,6 +150,7 @@ namespace
150
150
test_std::set_stopped_t ()
151
151
>() | test_std::upon_stopped ([]{}));
152
152
}
153
+
153
154
auto test_then_value () -> void
154
155
{
155
156
assert (std::tuple{17 } == *test_std::sync_wait (
@@ -178,4 +179,4 @@ auto main() -> int
178
179
test_then_type ();
179
180
test_then_multi_type ();
180
181
test_then_value ();
181
- }
182
+ }
You can’t perform that action at this time.
0 commit comments