[Boost-bugs] [Boost C++ Libraries] #3011: code_converter doesn't support boost::ref( std::istream )

Subject: [Boost-bugs] [Boost C++ Libraries] #3011: code_converter doesn't support boost::ref( std::istream )
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-05-10 13:47:11


#3011: code_converter doesn't support boost::ref( std::istream )
---------------------------------------------------+------------------------
 Reporter: Richard Smith <richard_at_[hidden]> | Owner: turkanis
     Type: Bugs | Status: new
Milestone: Boost 1.40.0 | Component: iostreams
  Version: Boost 1.38.0 | Severity: Problem
 Keywords: |
---------------------------------------------------+------------------------
 The documentations says that standard iostreams and streambufs model the
 Device concepts and that they need to be passed by reference via a
 boost::ref to components expecting a Device. This works in general, but
 not with the code_converter filter in 1.39. A short test case is:

 #include <istream>
 #include <iostream>
 #include <boost/ref.hpp>
 #include <boost/iostreams/code_converter.hpp>

 int main() {
   namespace io = boost::iostreams;
   io::code_converter<std::istream> cvt( boost::ref(std::cin) );
 }

 A trivial patch that fixes this is attached.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3011>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:00 UTC