Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r84002 - trunk/libs/fusion/test/sequence
From: joel_at_[hidden]
Date: 2013-04-21 10:07:22


Author: djowel
Date: 2013-04-21 10:07:21 EDT (Sun, 21 Apr 2013)
New Revision: 84002
URL: http://svn.boost.org/trac/boost/changeset/84002

Log:
Fixes #8336
Text files modified:
   trunk/libs/fusion/test/sequence/io.cpp | 17 ++++++++++++++++-
   1 files changed, 16 insertions(+), 1 deletions(-)

Modified: trunk/libs/fusion/test/sequence/io.cpp
==============================================================================
--- trunk/libs/fusion/test/sequence/io.cpp (original)
+++ trunk/libs/fusion/test/sequence/io.cpp 2013-04-21 10:07:21 EDT (Sun, 21 Apr 2013)
@@ -73,6 +73,21 @@
         BOOST_TEST (os2.str() == std::string("(TUPU:HUPU:LUPU:4.5)") );
     }
 
+ {
+ useThisOStringStream os2;
+ // Set format (a:b:c) for os2;
+ os2 << tuple_open('(');
+ os2 << tuple_close(')');
+ os2 << tuple_delimiter(':');
+ // overwrite previous setting
+ os2 << tuple_open("< ");
+ os2 << tuple_close('>');
+ os2 << tuple_delimiter(", ");
+
+ os2 << make_vector("TUPU", "HUPU", "LUPU", 4.5);
+ BOOST_TEST (os2.str() == std::string("< TUPU, HUPU, LUPU, 4.5>") );
+ }
+
     // The format is still [a, b, c] for os1
     os1 << make_vector(1, 2, 3);
     BOOST_TEST (os1.str() == std::string("[1,2,3][1,2,3]") );
@@ -103,7 +118,7 @@
     useThisIStringStream is("(100 200 300)");
 
     vector<int, int, int> ti;
- BOOST_TEST(bool(is >> ti) != 0);
+ BOOST_TEST((is >> ti) != 0);
     BOOST_TEST(ti == make_vector(100, 200, 300));
 
     // Note that strings are problematic:


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk