mirror of
https://github.com/boostorg/system.git
synced 2025-07-30 04:27:14 +02:00
Update test/result_value_construct
This commit is contained in:
@ -121,5 +121,12 @@ int main()
|
|||||||
BOOST_TEST_TRAIT_FALSE((std::is_convertible<int, result<X>>));
|
BOOST_TEST_TRAIT_FALSE((std::is_convertible<int, result<X>>));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
result<void> r( in_place_value );
|
||||||
|
|
||||||
|
BOOST_TEST( r.has_value() );
|
||||||
|
BOOST_TEST( !r.has_error() );
|
||||||
|
}
|
||||||
|
|
||||||
return boost::report_errors();
|
return boost::report_errors();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user