*** empty log message ***

[SVN r19997]
This commit is contained in:
Fernando Cacciola
2003-09-10 15:47:00 +00:00
parent d888dd2454
commit a1d8949039
14 changed files with 898 additions and 3 deletions

View File

@ -17,10 +17,13 @@
//
// THIS TEST SHOULD FAIL TO COMPILE
//
void test_no_direct_value_assignment()
void test_no_implicit_conversion()
{
boost::optional<int> opt(3) ;
opt = 4 ; // Cannot assign "int" to "optional<int>"
boost::optional<int> opt(1) ;
// You can compare against 0 or against another optional<>,
// but not against another value
if ( opt == 1 ) ;
}