
On Thu, Jul 15, 2010 at 12:07 PM, Joaquin M Lopez Munoz <joaquin@tid.es>wrote:
Converting to bool can be problematic, as throughly explained at
http://www.informit.com/articles/article.aspx?p=31529&seqNum=8
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: http://lists.boost.org/mailman/listinfo.cgi/boost
-- thanks, Brian Bartman