Subject: Re: [boost] [gsoc] Pointer Plus Bits Behavior and Interface
From: Brian Bartman (bbartmanboost_at_[hidden])
Date: 2010-07-15 12:12:04
On Thu, Jul 15, 2010 at 12:07 PM, Joaquin M Lopez Munoz <joaquin_at_[hidden]>wrote:
> Converting to bool can be problematic, as throughly explained at
> The optimum way to do this is to convert to a pointer of a private
> type which is null if and only if the stored pointer is null.
> This is explained also at the reference above and it's the way
> boost::shared_ptr implements "conversion to bool semantics" (take
> a look at the source for inspiration).
OK I'll read it over throughly. Thank you for the link.
> Joaquín M López Muñoz
> Telefónica, Investigación y Desarrollo
> Unsubscribe & other changes:
-- thanks, Brian Bartman
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk