mirror of
https://github.com/TartanLlama/optional.git
synced 2025-07-30 01:47:15 +02:00
MSVC
This commit is contained in:
@ -43,10 +43,12 @@ TEST_CASE("Noexcept", "[noexcept]") {
|
||||
|
||||
REQUIRE(noexcept(ont.swap(ont)));
|
||||
REQUIRE(!noexcept(ot.swap(ot)));
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
SECTION("constructors") {
|
||||
//TODO see why this fails
|
||||
#if !defined(_MSC_VER) || _MSC_VER > 1900
|
||||
REQUIRE(noexcept(tl::optional<int>{}));
|
||||
REQUIRE(noexcept(tl::optional<int>{tl::nullopt}));
|
||||
|
||||
@ -63,6 +65,7 @@ TEST_CASE("Noexcept", "[noexcept]") {
|
||||
|
||||
REQUIRE(noexcept(nothrow_opt{std::declval<nothrow_opt>()}));
|
||||
REQUIRE(!noexcept(throw_opt{std::declval<throw_opt>()}));
|
||||
#endif
|
||||
}
|
||||
|
||||
SECTION("assignment") {
|
||||
|
Reference in New Issue
Block a user