Support GCC 4.8

This commit is contained in:
Simon Brand
2017-10-21 22:31:42 +01:00
parent 7a6d918382
commit 1f22aabe21
4 changed files with 33 additions and 5 deletions

View File

@@ -22,8 +22,11 @@ TEST_CASE("Observers", "[observers]") {
REQUIRE(success);
success = std::is_same<decltype(std::move(o1).value()), int &&>::value;
REQUIRE(success);
#ifndef TL_OPTIONAL_NO_CONSTRR
success = std::is_same<decltype(std::move(o3).value()), const int &&>::value;
REQUIRE(success);
#endif
tl::optional<move_detector> o4{tl::in_place};
move_detector o5 = std::move(o4).value();