
31 Mar
2009
31 Mar
'09
9:06 p.m.
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.hp...