|
Boost : |
Subject: Re: [boost] safe-bool CRTP class
From: Stephan T. Lavavej (stl_at_[hidden])
Date: 2011-05-27 16:19:29
[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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk