[Boost-bugs] [Boost C++ Libraries] #3851: [iostreams] aggregate_filter incapable of handling character types other than char

Subject: [Boost-bugs] [Boost C++ Libraries] #3851: [iostreams] aggregate_filter incapable of handling character types other than char
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-01-20 14:36:39


#3851: [iostreams] aggregate_filter incapable of handling character types other
than char
---------------------------------------+------------------------------------
 Reporter: Benjamin.DeTroch@… | Owner: turkanis
     Type: Bugs | Status: new
Milestone: Boost 1.42.0 | Component: iostreams
  Version: Boost 1.39.0 | Severity: Problem
 Keywords: |
---------------------------------------+------------------------------------
 It appears aggreate_filter is incapable of handling character types other
 than char. When you for instance try using wchar_t, you'll get following
 compiler error:

 boost/iostreams/filter/aggregate.hpp(95): error C2664: 'void
 boost::iostreams::aggregate_filter<Ch,Alloc>::do_write<Sink>(Sink &,const
 char *,std::streamsize)' : cannot convert parameter 2 from 'wchar_t *' to
 'const char *'
         with
         [
             Ch= wchar_t,
             Alloc=std::allocator<wchar_t>,
 Sink=boost::iostreams::non_blocking_adapter<boost::iostreams::detail::linked_streamuf<
 wchar_t >>
         ]
         Types pointed to are unrelated; conversion requires
 reinterpret_cast, C-style cast or function-style cast.

 Patch attached.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3851>
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:02 UTC