Boost logo

Boost-Commit :

From: Samuel.Krempp_at_[hidden]
Date: 2007-08-16 13:33:47


Author: samuel_krempp
Date: 2007-08-16 13:33:47 EDT (Thu, 16 Aug 2007)
New Revision: 38729
URL: http://svn.boost.org/trac/boost/changeset/38729

Log:
bug fixed : prefix_ was not reset by make_or_reuse (all other buffers were).
Solves ticket #570

Text files modified:
   trunk/boost/format/format_implementation.hpp | 1 +
   1 files changed, 1 insertions(+), 0 deletions(-)

Modified: trunk/boost/format/format_implementation.hpp
==============================================================================
--- trunk/boost/format/format_implementation.hpp (original)
+++ trunk/boost/format/format_implementation.hpp 2007-08-16 13:33:47 EDT (Thu, 16 Aug 2007)
@@ -123,6 +123,7 @@
             for(std::size_t i=0; i < nbitems; ++i)
                 items_[i].reset(fill); // strings are resized, instead of reallocated
         }
+ prefix_.resize(0);
     }
 
     template< class Ch, class Tr, class Alloc>


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