[Boost-bugs] [Boost C++ Libraries] #13054: Boost Process - rdbuf() in basic_ipstream/basic_opstream - implementation bug

Subject: [Boost-bugs] [Boost C++ Libraries] #13054: Boost Process - rdbuf() in basic_ipstream/basic_opstream - implementation bug
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-06-02 21:22:01


#13054: Boost Process - rdbuf() in basic_ipstream/basic_opstream - implementation
bug
----------------------------+-------------------------------
 Reporter: radoslaw.chm@… | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: Building Boost | Version: Boost 1.66.0
 Severity: Problem | Keywords: boost process bug
----------------------------+-------------------------------
 boost/process/pipe.hpp :

     ///Get access to the underlying stream_buf
     basic_pipebuf<CharT, Traits>* rdbuf() const {return _buf;};

 my code:

     boost::process::opstream stream;

     stream.rdbuf();

 compiler:

 /home/myname/boost/include/boost/process/pipe.hpp:341:57: error: cannot
 convert ‘const boost::process::basic_pipebuf<char>’ to
 â€˜boost::process::basic_pipebuf<char>*’ in return
      basic_pipebuf<CharT, Traits>* rdbuf() const {return _buf;};
                                                          ^

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/13054>
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-06-02 21:25:34 UTC