Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r72343 - trunk/boost/spirit/home/support/utree
From: blelbach_at_[hidden]
Date: 2011-06-02 08:26:50


Author: wash
Date: 2011-06-02 08:26:49 EDT (Thu, 02 Jun 2011)
New Revision: 72343
URL: http://svn.boost.org/trac/boost/changeset/72343

Log:
Fix streaming operator.

Text files modified:
   trunk/boost/spirit/home/support/utree/utree.hpp | 3 +++
   1 files changed, 3 insertions(+), 0 deletions(-)

Modified: trunk/boost/spirit/home/support/utree/utree.hpp
==============================================================================
--- trunk/boost/spirit/home/support/utree/utree.hpp (original)
+++ trunk/boost/spirit/home/support/utree/utree.hpp 2011-06-02 08:26:49 EDT (Thu, 02 Jun 2011)
@@ -13,9 +13,11 @@
 #include <algorithm>
 #include <string>
 #include <iostream>
+#include <ios>
 #include <sstream>
 #include <typeinfo>
 
+#include <boost/io/ios_state.hpp>
 #include <boost/integer.hpp>
 #include <boost/throw_exception.hpp>
 #include <boost/assert.hpp>
@@ -95,6 +97,7 @@
     // streaming operator for utree types - essential for diagnostics
     inline std::ostream& operator<<(std::ostream& out, utree_type::info t)
     {
+ boost::io::ios_all_saver saver(out);
         switch (t) {
             case utree_type::invalid_type: { out << "invalid"; break; }
             case utree_type::nil_type: { out << "nil"; break; }


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