Boost logo

Boost :

Subject: Re: [boost] GGL - segments [was: Updating the Boost Review Process]
From: Brandon Kohn (blkohn_at_[hidden])
Date: 2009-11-19 12:28:24


Barend Gehrels wrote:

> That is true indeed. The segment is not meant for that. However, you can
> use it like below. This was meant to be included in the review, tests
> folder, but apparently I forgot that, or considered it as too rough, sorry.
> I hope that the speed of my answer will prove here that at least this
> one is not concocted on the fly :-)
>

Sure that works. My advice though would be to provide defaults with
value semantics just for QoL reasons for the users. I don't know how
expensive the costs of a copy would be.. but I'm guessing it's not huge.
You can always have a ref_segment too, and in memory tight situations
the users with that need will be treated as well.

Brandon


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