Boost logo

Boost :

Subject: Re: [boost] [safebool] Can we generalize it and put it into utilities?
From: Ilya Sokolov (ilyasokol_at_[hidden])
Date: 2009-03-31 17:06:15


Vladimir.Batov wrote:
> Repeating safe-bool scaffolding over and over again is a real nuisance. It
> is worse for the end users as not exactly everyone is intimately familiar
> with the issue and the safe-bool workaround. Can we generalize it and put
> something like the following into utilities?
>
> [snip]

Given a large number of known problems [1] and the forthcoming addition
of explicit conversion operators to c++, it might be better to provide a
macro.

[1]
http://svn.boost.org/svn/boost/trunk/boost/smart_ptr/detail/operator_bool.hpp


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