Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r63034 - trunk/boost/iostreams/detail/adapter
From: steven_at_[hidden]
Date: 2010-06-16 22:52:42


Author: steven_watanabe
Date: 2010-06-16 22:52:42 EDT (Wed, 16 Jun 2010)
New Revision: 63034
URL: http://svn.boost.org/trac/boost/changeset/63034

Log:
Make concept_adapter work with custom char_traits. Fixes #2356.
Text files modified:
   trunk/boost/iostreams/detail/adapter/concept_adapter.hpp | 11 ++++-------
   1 files changed, 4 insertions(+), 7 deletions(-)

Modified: trunk/boost/iostreams/detail/adapter/concept_adapter.hpp
==============================================================================
--- trunk/boost/iostreams/detail/adapter/concept_adapter.hpp (original)
+++ trunk/boost/iostreams/detail/adapter/concept_adapter.hpp 2010-06-16 22:52:42 EDT (Wed, 16 Jun 2010)
@@ -103,13 +103,10 @@
     void close(BOOST_IOS::openmode which, Device* dev)
     { any_impl::close(t_, dev, which); }
 
- bool flush( BOOST_IOSTREAMS_BASIC_STREAMBUF(char_type,
- BOOST_IOSTREAMS_CHAR_TRAITS(char_type))* sb )
- {
- bool result = any_impl::flush(t_, sb);
- if (sb && sb->BOOST_IOSTREAMS_PUBSYNC() == -1)
- result = false;
- return result;
+ template<typename Device>
+ bool flush( Device* dev )
+ {
+ return any_impl::flush(t_, dev);
     }
 
     template<typename Locale> // Avoid dependency on <locale>


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