diff --git a/tests/monadic.cpp b/tests/monadic.cpp index 641be0f..a1d869c 100644 --- a/tests/monadic.cpp +++ b/tests/monadic.cpp @@ -319,6 +319,7 @@ SECTION("and_then") { } SECTION("constexpr and_then") { +#ifndef _MSC_VER constexpr tl::optional o10 = 42; constexpr auto o10r = o10.and_then(get_opt_int); REQUIRE(*o10r == 42); @@ -334,6 +335,7 @@ SECTION("constexpr and_then") { constexpr tl::optional o19 = tl::nullopt; constexpr auto o19r = std::move(o19).and_then(get_opt_int); REQUIRE(!o19r); +#endif } SECTION("or else") {