Ticket #2894 (closed Bugs: fixed)
Incorrect type for buffer_size and pback_size parameters
|Reported by:||gareth.sylvester-bradley@…||Owned by:||turkanis|
|Version:||Boost Development Trunk||Severity:||Problem|
Documentation for stream::open says:
void open( const T& t, std::streamsize buffer_size, std::streamsize pback_size );
That seems right to me.
However, on some environments (64-bit), passing std::streamsize arguments causes compilation failure, since the actual implementation has these parameters as int everywhere [*], and the template forwarding stream constructor/open don't work correctly.
Explicitly casting arguments to int in client code works, but changing these parameters everywhere in Boost.Iostreams to std::streamsize fixes things for me.
[*] E.g. at line 16 of boost/iostreams/detail/push_params.hpp:
, int buffer_size = -1 , int pback_size = -1 \
- Status changed from new to closed
- Resolution set to fixed
- Status changed from closed to reopened
- Version changed from Boost 1.38.0 to Boost Development Trunk
- Resolution fixed deleted