Boost logo

Boost Users :

Subject: Re: [Boost-users] Data type to handle C++ and Boost streams?
From: Adam Nielsen (a.nielsen_at_[hidden])
Date: 2009-09-13 18:39:55


>> void writeSomeData(std::fstream out);
>>
>> I can't pass a boost::iostream::stream to this function. What type can I use
>> to achieve this?
>
> void writeSomeData(std::ostream &out);
>

Ah, of course! Thanks guys, just what I needed (std::iostream in this case.)

Interesting idea with the unit tests too Richard, I'll have to come back to that.

Cheers,
Adam.


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