Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r57609 - trunk/boost/iostreams
From: daniel_james_at_[hidden]
Date: 2009-11-12 14:19:53


Author: danieljames
Date: 2009-11-12 14:19:52 EST (Thu, 12 Nov 2009)
New Revision: 57609
URL: http://svn.boost.org/trac/boost/changeset/57609

Log:
Support boost::ref(std::istream) in code_converter. Refs #3011.

By Richard Smith.
Text files modified:
   trunk/boost/iostreams/code_converter.hpp | 3 ++-
   1 files changed, 2 insertions(+), 1 deletions(-)

Modified: trunk/boost/iostreams/code_converter.hpp
==============================================================================
--- trunk/boost/iostreams/code_converter.hpp (original)
+++ trunk/boost/iostreams/code_converter.hpp 2009-11-12 14:19:52 EST (Thu, 12 Nov 2009)
@@ -153,7 +153,8 @@
         } catch (...) { /* */ }
     }
 
- void open(const Device& dev, int buffer_size)
+ template <class T>
+ void open(const T& dev, int buffer_size)
     {
         if (flags_ & f_open)
             boost::throw_exception(BOOST_IOSTREAMS_FAILURE("already open"));


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