Boost logo

Boost-Commit :

From: technews_at_[hidden]
Date: 2008-05-31 18:50:19


Author: turkanis
Date: 2008-05-31 18:50:19 EDT (Sat, 31 May 2008)
New Revision: 45997
URL: http://svn.boost.org/trac/boost/changeset/45997

Log:
made string_type depend on allocator parameter
Text files modified:
   trunk/boost/iostreams/filter/symmetric.hpp | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: trunk/boost/iostreams/filter/symmetric.hpp
==============================================================================
--- trunk/boost/iostreams/filter/symmetric.hpp (original)
+++ trunk/boost/iostreams/filter/symmetric.hpp 2008-05-31 18:50:19 EDT (Sat, 31 May 2008)
@@ -71,8 +71,9 @@
> >
 class symmetric_filter {
 public:
- typedef typename char_type_of<SymmetricFilter>::type char_type;
- typedef std::basic_string<char_type> string_type;
+ typedef typename char_type_of<SymmetricFilter>::type char_type;
+ typedef BOOST_IOSTREAMS_CHAR_TRAITS(char_type) traits_type;
+ typedef std::basic_string<char_type, traits_type, Alloc> string_type;
     struct category
         : dual_use,
           filter_tag,
@@ -217,7 +218,6 @@
     template<typename Sink>
     bool flush(Sink& snk, mpl::true_)
     {
- typedef char_traits<char_type> traits_type;
         std::streamsize amt =
             static_cast<std::streamsize>(buf().ptr() - buf().data());
         std::streamsize result =


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