Boost logo

Boost :

Subject: Re: [boost] [optional] generates unnessesary code for trivial types
From: Olaf van der Spek (ml_at_[hidden])
Date: 2012-02-13 09:40:56


On Mon, Feb 13, 2012 at 2:28 PM, Andrzej Krzemienski <akrzemi1_at_[hidden]> wrote:
>> Side question: is streamablity going to be in your proposal?
> It is not currently. The reason for that is that there is no clear way how
> it should be implemented (a similar issue applies to pairs, tuples,
> variant, any, etc...) See
> http://lists.boost.org/Archives/boost/2005/03/81619.php for discussion. I
> believe that the problem is with the streaming itself. For instance, should
> streaming out and then streaming the result back in produce the same value?
> Some people expect that, but even std::string could not provide this
> behavior.

I'd do only << and forget about >>

-- 
Olaf

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk