Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r55443 - trunk/boost/spirit/home/karma/directive
From: hartmut.kaiser_at_[hidden]
Date: 2009-08-07 09:34:30


Author: hkaiser
Date: 2009-08-07 09:34:29 EDT (Fri, 07 Aug 2009)
New Revision: 55443
URL: http://svn.boost.org/trac/boost/changeset/55443

Log:
Spirit: fixing return value semantics of karma::buffer[]
Text files modified:
   trunk/boost/spirit/home/karma/directive/buffer.hpp | 7 +++----
   1 files changed, 3 insertions(+), 4 deletions(-)

Modified: trunk/boost/spirit/home/karma/directive/buffer.hpp
==============================================================================
--- trunk/boost/spirit/home/karma/directive/buffer.hpp (original)
+++ trunk/boost/spirit/home/karma/directive/buffer.hpp 2009-08-07 09:34:29 EDT (Fri, 07 Aug 2009)
@@ -62,8 +62,8 @@
         bool generate(OutputIterator& sink, Context& ctx, Delimiter const& d
           , Attribute const& attr) const
         {
- // wrap the given output iterator avoid output as long as embedded
- // generator (subject) fails
+ // wrap the given output iterator to avoid output as long as the
+ // embedded generator (subject) fails
             detail::enable_buffering<OutputIterator> buffering(sink);
             bool r = false;
             {
@@ -72,8 +72,7 @@
             }
             if (r)
                 buffering.buffer_copy();
-
- return detail::sink_is_good(sink);
+ return r;
         }
 
         template <typename Context>


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