mirror of
https://github.com/TartanLlama/optional.git
synced 2026-05-05 04:04:26 +02:00
Get references compiling, initial tests
This commit is contained in:
@@ -37,4 +37,8 @@ TEST_CASE("Make optional", "[make_optional]") {
|
||||
REQUIRE(o5->v[1] == 1);
|
||||
REQUIRE(std::get<0>(o5->t) == 2);
|
||||
REQUIRE(std::get<1>(o5->t) == 3);
|
||||
|
||||
auto i = 42;
|
||||
auto o6 = tl::make_optional<int&>(i);
|
||||
REQUIRE((std::is_same<decltype(o6), tl::optional<int&>>::value));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user