
15 Jul
2010
15 Jul
'10
5:32 p.m.
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