mirror of
https://github.com/boostorg/system.git
synced 2026-05-03 19:40:47 +02:00
Fix rvalue result<void> cases
This commit is contained in:
@@ -335,5 +335,25 @@ int main()
|
||||
BOOST_TEST( r2.has_error() );
|
||||
}
|
||||
|
||||
{
|
||||
result<void, E> r2 = result<void>() | fv;
|
||||
BOOST_TEST( r2.has_value() );
|
||||
}
|
||||
|
||||
{
|
||||
result<void, E> r2 = result<void>() | fv2;
|
||||
BOOST_TEST( r2.has_value() );
|
||||
}
|
||||
|
||||
{
|
||||
result<void, E> r2 = result<void>( in_place_error ) | fv;
|
||||
BOOST_TEST( r2.has_value() );
|
||||
}
|
||||
|
||||
{
|
||||
result<void, E> r2 = result<void>( in_place_error ) | fv2;
|
||||
BOOST_TEST( r2.has_error() );
|
||||
}
|
||||
|
||||
return boost::report_errors();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user