
Nitay Joffe wrote: Hey guys,
I'm working with the boost::iostreams library to create a stream object from a Device class I've implemented. I'm trying to call the constructor that allows setting of the buffer size and it is failing to compile on 64 bit.
I used the documenation at http://www.boost.org/libs/iostreams/doc/guide/generic_streams.html#stream
The docs say the constructor is of the form:
stream(const T& t, std::streamsize buffer_size = default_value, std::streamsize pback_size = default_value);
My code to create the stream looks like:
MyDevice myDevice(...) MyStream(myDevice, (std::streamsize)500);
On a 32 bit machine this works fine, but on a 64 bit one it does not compile. The parameters I'm passing in are not matching up with a
Would you please post the compiler errors?
Thanks, -n
Sure, here is sample code that causes the error:
#include <iosfwd>
#include