Updated value_initialized documentation and test following changeset [51355].

[SVN r51356]
This commit is contained in:
Niels Dekker
2009-02-20 20:35:34 +00:00
parent 5f0cf4f5de
commit 0af1959b30
2 changed files with 47 additions and 23 deletions

View File

@ -260,7 +260,7 @@ bool test ( T const& y, T const& z )
boost::value_initialized<T> const x_c ;
BOOST_CHECK ( y == x_c ) ;
BOOST_CHECK ( y == boost::get(x_c) ) ;
T& x_c_ref = x_c ;
T& x_c_ref = const_cast<T&>( boost::get(x_c) ) ;
x_c_ref = z ;
BOOST_CHECK ( x_c == z ) ;