mirror of
https://github.com/boostorg/optional.git
synced 2025-07-22 00:32:09 +02:00
Drop support for C++03
This commit is contained in:
@ -29,13 +29,15 @@ void test()
|
||||
{
|
||||
#if (!defined BOOST_NO_CXX11_RVALUE_REFERENCES)
|
||||
boost::optional<int> v = Wrapper();
|
||||
BOOST_TEST(v);
|
||||
//BOOST_TEST(v);
|
||||
boost::optional<boost::optional<int>> vv;
|
||||
bool xx = vv?true : false;
|
||||
BOOST_TEST_EQ(*v, 7);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
test();
|
||||
return boost::report_errors();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user