Boost logo

Boost Users :

Subject: Re: [Boost-users] [iostreams] problems with operator<<
From: Roland Bock (rbock_at_[hidden])
Date: 2009-08-28 03:40:51


Robert Dailey wrote:
> Hello,
>
> I'm using the container_device class provided in the documentation. I'm
> creating my stream and device like so:
>
> typedef boost::iostreams::stream<
> container_device<std::vector<boost::uint8_t > >
> > ByteStream;
>
> ByteStream stream;
> stream << "Hello";

Hi,

I did the same and it runs just fine...

I modified the example from iostreams documentation to make it compile
(this probably answers your previous mail, could you file a patch after
verifying my changes?).

A complete example which compiles (and runs just fine with boost 1.36)
is attached.

So in order to find out what's wrong in your case, you should provide a
full example yourself.

Regards,

Roland




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