Skip to content

Commit fa09ca4

Browse files
committed
another attempt at fixing the problem with MSVC++
1 parent fceff3c commit fa09ca4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/beman/execution26/detail/set_error.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ struct set_error_t {
3030
})
3131
= BEMAN_EXECUTION26_DELETE("set_error requires a suitable member overload on the receiver");
3232
template <typename Receiver, typename Error>
33-
requires(not noexcept(::std::declval<Receiver>().set_error(static_cast<Error>(::std::declval<Error>()))))
33+
requires(not noexcept(::std::declval<Receiver>().set_error(::std::declval<Error>())))
3434
auto operator()(Receiver&&, Error&&) const
3535
-> void = BEMAN_EXECUTION26_DELETE("the call to receiver.set_error(error) has to be noexcept");
3636

tests/beman/execution26/exec-set-error.test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ struct arg_throwing {};
1717
struct receiver {
1818
auto set_error(int) noexcept -> void {}
1919
// NOTLINTNEXTLINE(performance-unnecessary-value-param)
20-
auto set_error(test::throws) noexcept -> void {}
20+
auto set_error(test::throws) noexcept(false) -> void {}
2121
auto set_error(arg a) noexcept -> void { ASSERT(a.value == 43); }
2222
auto set_error(arg_throwing) -> void {}
2323
};

0 commit comments

Comments
 (0)