mirror of
https://github.com/TartanLlama/optional.git
synced 2025-08-01 02:44:27 +02:00
Fix noexcept
This commit is contained in:
@@ -63,8 +63,8 @@ TEST_CASE("Noexcept", "[noexcept]") {
|
||||
using nothrow_opt = tl::optional<nothrow_move>;
|
||||
using throw_opt = tl::optional<throw_move>;
|
||||
|
||||
REQUIRE(noexcept(nothrow_opt{std::declval<nothrow_opt>()}));
|
||||
REQUIRE(!noexcept(throw_opt{std::declval<throw_opt>()}));
|
||||
REQUIRE(std::is_nothrow_move_constructible<nothrow_opt>::value);
|
||||
REQUIRE(!std::is_nothrow_move_constructible<throw_opt>::value);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user