Skip to content

Commit 2ccd4b5

Browse files
committed
older GCC doesn't respect noexcept(false) w/ =default
1 parent 752dea1 commit 2ccd4b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/exec/test_repeat_n.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ namespace {
157157
// 1.
158158
struct Error_with_throw_copy {
159159
Error_with_throw_copy() noexcept = default;
160-
Error_with_throw_copy(const Error_with_throw_copy&) noexcept(false) = default;
160+
Error_with_throw_copy(const Error_with_throw_copy&) noexcept(false) {};
161161
};
162162
ex::sender auto snd = ex::just_error(Error_with_throw_copy{}) | exec::repeat_n(1);
163163
static_assert(

test/exec/test_repeat_until.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ namespace {
380380
// 2.
381381
struct Error_with_throw_copy {
382382
Error_with_throw_copy() noexcept = default;
383-
Error_with_throw_copy(const Error_with_throw_copy&) noexcept(false) = default;
383+
Error_with_throw_copy(const Error_with_throw_copy&) noexcept(false) {};
384384
};
385385
ex::sender auto snd = ex::just_error(Error_with_throw_copy{}) | exec::repeat_until();
386386
static_assert(

0 commit comments

Comments
 (0)