In-place factories moved from /detail to /utility

New value_initalized tests added


[SVN r25436]
This commit is contained in:
Fernando Cacciola
2004-09-27 12:28:21 +00:00
parent 07a80c1b9b
commit 24c5f92413
2 changed files with 6 additions and 2 deletions

View File

@ -60,12 +60,16 @@ int test_main( int, char* [] )
BOOST_CHECK( opt2 == opt2 ) ; BOOST_CHECK( opt2 == opt2 ) ;
BOOST_CHECK( *opt2 == a0 ) ; BOOST_CHECK( *opt2 == a0 ) ;
#ifndef BOOST_OPTIONAL_WEAK_OVERLOAD_RESOLUTION
opt2 = boost::in_place(a10,a11); opt2 = boost::in_place(a10,a11);
BOOST_CHECK( *opt2 == a1 ) ; BOOST_CHECK( *opt2 == a1 ) ;
opt3 = boost::in_place<A>(a10,a11); opt3 = boost::in_place<A>(a10,a11);
BOOST_CHECK( *opt3 == a1 ) ; BOOST_CHECK( *opt3 == a1 ) ;
#endif
return 0; return 0;
} }
#else #else

View File

@ -17,8 +17,8 @@
void optional_reference__test_no_converting_assignment() void optional_reference__test_no_converting_assignment()
{ {
boost::optional<int&> opt ; boost::optional<int&> opt ;
short v = 1 ; double v = 1 ;
short& r = v ; double& r = v ;
opt = r ; opt = r ;
} }