Boost logo

Boost :

Subject: Re: [boost] [safebool] Can we generalize it and put it into utilities?
From: Vladimir Batov (vladimir.batov_at_[hidden])
Date: 2009-03-31 18:20:17


> Ilya Sokolov <ilyasokol <at> gmail.com> writes:
>
> 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

Ilya, thank you for chiming in. Much appreciated. I am not exactly sure I
understand. What are the "large number of known problems"? Your reference of
operator_bool.hpp does not strike me as such. Do you have anything in mind that
was not mentioned in the chapter 7.7 of Alexandrescu's "Modern C++ Design"
or/and the article at http://www.artima.com/cppsource/safe_bool.html by Bjorn
Karlsson?

I glanced over "explicit conversion operators" in C++0x. It did not struck me as
relevant to safe_bool. Care to elaborate?

Best,
V.


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