Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53607 - trunk/boost/spirit/home/karma/stream
From: hartmut.kaiser_at_[hidden]
Date: 2009-06-03 14:40:02


Author: hkaiser
Date: 2009-06-03 14:40:01 EDT (Wed, 03 Jun 2009)
New Revision: 53607
URL: http://svn.boost.org/trac/boost/changeset/53607

Log:
Spirit: fixed a problem in karma::format_manip class
Text files modified:
   trunk/boost/spirit/home/karma/stream/format_manip.hpp | 6 +++++-
   1 files changed, 5 insertions(+), 1 deletions(-)

Modified: trunk/boost/spirit/home/karma/stream/format_manip.hpp
==============================================================================
--- trunk/boost/spirit/home/karma/stream/format_manip.hpp (original)
+++ trunk/boost/spirit/home/karma/stream/format_manip.hpp 2009-06-03 14:40:01 EDT (Wed, 03 Jun 2009)
@@ -93,7 +93,11 @@
     inline std::basic_ostream<Char, Traits> &
     operator<< (std::basic_ostream<Char, Traits> &os, generator<Derived> const& g)
     {
- karma::detail::ostream_iterator<Char, Char, Traits> sink(os);
+ typedef karma::detail::ostream_iterator<Char, Char, Traits> outiter_type;
+
+ outiter_type target_sink(os);
+ karma::detail::output_iterator<outiter_type> sink(target_sink);
+
         if (!g.derived().generate(sink, unused, unused, unused))
         {
             os.setstate(std::ios_base::failbit);


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