Boost logo

Boost :

Subject: Re: [boost] [gsoc] Pointer Plus Bits Behavior and Interface
From: David Abrahams (dave_at_[hidden])
Date: 2010-07-15 13:32:57


On Jul 15, 2010, at 1:09 PM, Andrew Sutton wrote:

>> One could argue that the bits should be evaluated to produce the
>> Boolean result as easily as evaluating the pointer. There are two aspects
>> in pointer_plus_bits and they shouldn't be obscured or conflated.
>>
>
> I strongly disagree with using views in the design of this data structure.
> It's not such a complex concept that you would need to explicitly decouple
> its concerns via views. You end up designing a pointer+bits that can't be
> used natively as a pointer or bits.

I agree with Andrew.

Somebody please read http://www.artima.com/cppsource/safebool.html

Thanks,

--
David Abrahams
BoostPro Computing
http://boostpro.com

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