This commit is contained in:
Simon Brand
2017-10-20 12:13:45 +01:00
parent 9e7fcbdf60
commit 46986ee03e

View File

@ -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") {