$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r64205 - trunk/libs/optional/test
From: fernando.cacciola_at_[hidden]
Date: 2010-07-20 14:20:02
Author: fcacciola
Date: 2010-07-20 14:20:01 EDT (Tue, 20 Jul 2010)
New Revision: 64205
URL: http://svn.boost.org/trac/boost/changeset/64205
Log:
Test for fixed extraction operator for empty optinals
Text files modified: 
   trunk/libs/optional/test/optional_test_io.cpp |     9 ++++++---                               
   1 files changed, 6 insertions(+), 3 deletions(-)
Modified: trunk/libs/optional/test/optional_test_io.cpp
==============================================================================
--- trunk/libs/optional/test/optional_test_io.cpp	(original)
+++ trunk/libs/optional/test/optional_test_io.cpp	2010-07-20 14:20:01 EDT (Tue, 20 Jul 2010)
@@ -55,10 +55,14 @@
 {
   stringstream s ;
 
-  s << o ;
-  s >> buff ;
+  const int markv = 123 ;
+  int mark = 0 ;
+  
+  s << o << " " << markv ;
+  s >> buff >> mark ;
 
   BOOST_ASSERT( buff == o ) ;
+  BOOST_ASSERT( mark == markv ) ;
 }
 
 
@@ -77,7 +81,6 @@
   {
     test(1,2);
     test(string("hello"),string("buffer"));
-    test(string(""),string("buffer"));
   }
   catch ( ... )
   {