Opened 17 years ago

Closed 15 years ago

#525 closed Bugs (fixed)

problem with boost::iostreams when compiled with Visual C++

Reported by: nobody Owned by: Jonathan Turkanis
Milestone: Component: iostreams
Version: None Severity: Problem
Keywords: Cc:

Description

There seems to be a problem with boost::iostreams 
when compiled with Visual C++ 7.1 (Boost Release 
1.33.1 Beta).

The following code results in a compile error:

char array[100];
typedef code_converter<array_sink, 
Dinkum::conversions::codecvt_utf8<wchar_t> > 
MyArrayDevice;
stream<MyArrayDevice> wCharOut(array, 100);

error 
C2665: 'boost::iostreams::detail::io_mode_impl_helper'
 : none of the 9 overloads can convert parameter 1 
from 
type 'boost::iostreams::detail::array_adapter<Mode,Ch>
::category'
....

The same lines work just fine when compiled with gcc.

Change History (2)

comment:1 by Daryle Walker, 15 years ago

Component: Noneiostreams
Severity: Problem

comment:2 by Jonathan Turkanis, 15 years ago

Resolution: Nonefixed
Status: assignedclosed

It was a VC7.1 bug, fixed in [42365] in branches/iostreams_dev, to be merged into trunk shortly.

Note: See TracTickets for help on using tickets.