Re: [Boost-bugs] [Boost C++ Libraries] #4728: "iostreams::detail::mode_adapter<>" is never "flushable": flushing a filtering_ostream will not flush the "std::ostream" target --- patch included.

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4728: "iostreams::detail::mode_adapter<>" is never "flushable": flushing a filtering_ostream will not flush the "std::ostream" target --- patch included.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-10-21 19:04:06


#4728: "iostreams::detail::mode_adapter<>" is never "flushable": flushing a
filtering_ostream will not flush the "std::ostream" target --- patch
included.
---------------------------------------------------------------+------------
  Reporter: Duncan Exon Smith <duncanphilipnorman@…> | Owner: turkanis
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: iostreams
   Version: Boost 1.44.0 | Severity: Problem
Resolution: | Keywords:
---------------------------------------------------------------+------------

Comment (by Duncan Exon Smith <duncanphilipnorman@…>):

 I couldn't find a workaround that did not use a patched header.

 For my projects, I include a patched copy of `mode_adaptor.hpp` in an
 overlay (i.e.,
 `$MY_PROJECT/boost/iostreams/detail/adapter/mode_adapter.hpp`). Since
 headers in `$MY_PROJECT` get precedence over system headers (i.e., I pass
 `-I.` to GCC), the patched version gets used automatically.

 The bad news is that you need to maintain the patched version of
 `mode_adaptor.hpp` yourself when you upgrade Boost.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4728#comment:4>
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:07 UTC