
28 May
2011
28 May
'11
4:29 a.m.
On Fri, May 27, 2011 at 4:19 PM, Stephan T. Lavavej <stl@exchange.microsoft.com> wrote:
[Steven Watanabe]
What about a macro that can be used like BOOST_EXPLICIT_BOOL_OPERATOR() const { return ...; }
Having done this in the STL, I can offer the following warning: you'll need to generate a different fake-bool type for every class, otherwise things will be [in]equality comparable that should not be.
STL
ie __LINE__ and __FILE__ or __COUNTER__ etc? All the more reason for the macro, I suppose. Tony