Reference semantics change rolledback (deffered to after 1.31.0)

[SVN r20557]
This commit is contained in:
Fernando Cacciola
2003-10-30 00:39:34 +00:00
parent 3b7d49e4aa
commit 65464ceffd
2 changed files with 19 additions and 101 deletions

View File

@ -308,23 +308,12 @@ void test_with_class_type()
BOOST_CHECK ( X::count == 0 ) ;
}
void test_aliasing()
{
int a = 1 ;
optional<int&> opt(a);
int b = 2 ;
opt = b;
BOOST_CHECK( a == b ) ;
}
int test_main( int, char* [] )
{
try
{
test_with_class_type();
test_with_builtin_types();
test_aliasing();
}
catch ( ... )
{