Boost logo

Boost Users :

From: Jonathan Turkanis (turkanis_at_[hidden])
Date: 2008-02-26 20:17:08


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

-- 
Jonathan Turkanis
CodeRage
http://www.coderage.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net