@@ -68,19 +68,19 @@ namespace
68
68
69
69
auto test_then_type () -> void
70
70
{
71
- test_then_type< test_std::set_value_t ()>(test_std::just (0 ) | test_std::then ([](auto ){}));
72
- test_then_type< test_std::set_value_t (int )>(test_std::just () | test_std::then ([]{ return 0 ; }));
73
- test_then_type< test_std::set_error_t (int )>(test_std::just_error (0 ) | test_std::then ([]{ return 0 ; }));
74
- test_then_type< test_std::set_stopped_t ()>(test_std::just_stopped () | test_std::then ([]{ return 0 ; }));
71
+ test_then_type< test_std::set_value_t ()>(test_std::just (0 ) | test_std::then ([](auto )noexcept {}));
72
+ test_then_type< test_std::set_value_t (int )>(test_std::just () | test_std::then ([]() noexcept { return 0 ; }));
73
+ test_then_type< test_std::set_error_t (int )>(test_std::just_error (0 ) | test_std::then ([]() noexcept { return 0 ; }));
74
+ test_then_type< test_std::set_stopped_t ()>(test_std::just_stopped () | test_std::then ([]() noexcept { return 0 ; }));
75
75
76
- test_then_type< test_std::set_value_t ()>(test_std::just () | test_std::upon_error ([]{ return 0 ; }));
76
+ test_then_type< test_std::set_value_t ()>(test_std::just () | test_std::upon_error ([]() noexcept { return 0 ; }));
77
77
test_then_type< test_std::set_value_t (int )>(test_std::just_error (error{})
78
- | test_std::upon_error ([](error){ return 0 ; }));
79
- test_then_type< test_std::set_stopped_t ()>(test_std::just_stopped () | test_std::upon_error ([]{}));
78
+ | test_std::upon_error ([](error)noexcept { return 0 ; }));
79
+ test_then_type< test_std::set_stopped_t ()>(test_std::just_stopped () | test_std::upon_error ([]() noexcept {}));
80
80
81
- test_then_type< test_std::set_value_t (int )>(test_std::just (0 ) | test_std::upon_stopped ([]{}));
82
- test_then_type< test_std::set_error_t (int )>(test_std::just_error (0 ) | test_std::upon_stopped ([]{}));
83
- test_then_type< test_std::set_value_t ()>(test_std::just_stopped () | test_std::upon_stopped ([]{}));
81
+ test_then_type< test_std::set_value_t (int )>(test_std::just (0 ) | test_std::upon_stopped ([]() noexcept {}));
82
+ test_then_type< test_std::set_error_t (int )>(test_std::just_error (0 ) | test_std::upon_stopped ([]() noexcept {}));
83
+ test_then_type< test_std::set_value_t ()>(test_std::just_stopped () | test_std::upon_stopped ([]() noexcept {}));
84
84
}
85
85
86
86
auto test_then_multi_type () -> void
@@ -102,7 +102,8 @@ namespace
102
102
test_then_type<
103
103
test_std::set_value_t (bool ),
104
104
test_std::set_error_t (error),
105
- test_std::set_stopped_t ()
105
+ test_std::set_stopped_t (),
106
+ test_std::set_error_t (::std::exception_ptr)
106
107
>(sender<
107
108
test_std::set_value_t (),
108
109
test_std::set_value_t (int , int ),
@@ -113,7 +114,8 @@ namespace
113
114
test_std::set_value_t (),
114
115
test_std::set_value_t (int , int ),
115
116
test_std::set_value_t (bool ),
116
- test_std::set_stopped_t ()
117
+ test_std::set_stopped_t (),
118
+ test_std::set_error_t (::std::exception_ptr)
117
119
>(sender<
118
120
test_std::set_value_t (),
119
121
test_std::set_value_t (int , int ),
@@ -123,7 +125,8 @@ namespace
123
125
test_then_type<
124
126
test_std::set_value_t (),
125
127
test_std::set_value_t (int , int ),
126
- test_std::set_stopped_t ()
128
+ test_std::set_stopped_t (),
129
+ test_std::set_error_t (::std::exception_ptr)
127
130
>(sender<
128
131
test_std::set_value_t (),
129
132
test_std::set_value_t (int , int ),
@@ -140,7 +143,7 @@ namespace
140
143
test_std::set_value_t (int , int ),
141
144
test_std::set_error_t (error),
142
145
test_std::set_stopped_t ()
143
- >() | test_std::upon_stopped ([]{}));
146
+ >() | test_std::upon_stopped ([]() noexcept {}));
144
147
test_then_type<
145
148
test_std::set_value_t (),
146
149
test_std::set_value_t (int , int ),
@@ -150,6 +153,17 @@ namespace
150
153
test_std::set_value_t (int , int ),
151
154
test_std::set_error_t (error),
152
155
test_std::set_stopped_t ()
156
+ >() | test_std::upon_stopped ([]()noexcept {}));
157
+ test_then_type<
158
+ test_std::set_value_t (),
159
+ test_std::set_value_t (int , int ),
160
+ test_std::set_error_t (error),
161
+ test_std::set_error_t (::std::exception_ptr)
162
+ >(sender<
163
+ test_std::set_value_t (),
164
+ test_std::set_value_t (int , int ),
165
+ test_std::set_error_t (error),
166
+ test_std::set_stopped_t ()
153
167
>() | test_std::upon_stopped ([]{}));
154
168
}
155
169
0 commit comments