[SVN r42338]
This commit is contained in:
Daniel James
2007-12-29 15:30:07 +00:00
parent e76c779b8c
commit fc960ec5ef
2 changed files with 14 additions and 17 deletions

View File

@@ -202,6 +202,13 @@ bool test ( T const& y, T const& z )
x_c_ref = z ;
BOOST_CHECK ( x_c == z ) ;
boost::value_initialized<T> const copy1 = x;
BOOST_CHECK ( boost::get(copy1) == boost::get(x) ) ;
boost::value_initialized<T> copy2;
copy2 = x;
BOOST_CHECK ( boost::get(copy2) == boost::get(x) ) ;
boost::shared_ptr<boost::value_initialized<T> > ptr( new boost::value_initialized<T> );
BOOST_CHECK ( y == *ptr ) ;