Boost C++ Libraries: Ticket #3851: [iostreams] aggregate_filter incapable of handling character types other than char https://svn.boost.org/trac10/ticket/3851 <p> 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: </p> <p> boost/iostreams/filter/aggregate.hpp(95): error C2664: 'void boost::iostreams::aggregate_filter&lt;Ch,Alloc&gt;::do_write&lt;Sink&gt;(Sink &amp;,const char *,std::streamsize)' : cannot convert parameter 2 from 'wchar_t *' to 'const char *' </p> <blockquote> <p> with [ </p> <blockquote> <p> Ch= wchar_t, Alloc=std::allocator&lt;wchar_t&gt;, Sink=boost::iostreams::non_blocking_adapter&lt;boost::iostreams::detail::linked_streamuf&lt; wchar_t &gt;&gt; </p> </blockquote> <p> ] Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast. </p> </blockquote> <p> Patch attached. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3851 Trac 1.4.3 Benjamin.DeTroch@… Wed, 20 Jan 2010 14:37:12 GMT attachment set https://svn.boost.org/trac10/ticket/3851 https://svn.boost.org/trac10/ticket/3851 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">aggregate_filter.hpp.patch</span> </li> </ul> <p> Patch file </p> Ticket anonymous Fri, 22 Jan 2010 08:00:41 GMT <link>https://svn.boost.org/trac10/ticket/3851#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3851#comment:1</guid> <description> <p> <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3279" title="#3279: Bugs: SymmetricFilter does not compile with non-char types (closed: fixed)">#3279</a> seems to be related to this bug. It seems that in someplaces instead of the template parameter 'char_type' the type 'char' is used instead. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Tue, 15 Jun 2010 19:54:47 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/3851#comment:2 https://svn.boost.org/trac10/ticket/3851#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/62994" title="Make aggregate_filter work with wide characters. Fixes #3851.">[62994]</a>) Make aggregate_filter work with wide characters. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3851" title="#3851: Bugs: [iostreams] aggregate_filter incapable of handling character types ... (closed: fixed)">#3851</a>. </p> Ticket