$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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.