[Boost-bugs] [Boost C++ Libraries] #2356: bug at compile time when using customized char_traits

Subject: [Boost-bugs] [Boost C++ Libraries] #2356: bug at compile time when using customized char_traits
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-09-21 13:59:21


#2356: bug at compile time when using customized char_traits
-----------------------------------------------------------+----------------
 Reporter: Nicolas Vanhoren <nicolas.vanhoren_at_[hidden]> | Owner: turkanis
     Type: Bugs | Status: new
Milestone: | Component: iostreams
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
-----------------------------------------------------------+----------------
 This is quite simple, ''boost::iostream::stream'' and
 ''boost::iostream::stream_buffer'' are obviously made to allow the usage
 of customized char_traits (I mean, a character trait class that is not
 some sort a specialization of ''std::char_trait''), as we can guess it by
 looking at their optional second template argument.

 But when doing so, it does not compile (see test.cpp). This problem seems
 to come from an internal class of iostreams, ''concept_adapter'', and one
 of its methods. As I can understand, that method forces a buffer to a type
 like ''std::basic_buffer<Any,std::char_traits<Any> >'', which is incorrect
 (it should uses the character trait type passed as an argument to
 boost::iostreams::stream).

 The provided patch is working, but it just some trick to allow the code to
 compile. In the worst case that little helper class should be redesigned
 to add the character trait type to the list of its template parameters.

-- 
Ticket URL: <http://svn.boost.org/trac/boost/ticket/2356>
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:49:58 UTC