Implements the Save Bool Idiom. More...
#include <SafeBool.hpp>
Public Member Functions | |
operator bool_type () const | |
Protected Types | |
typedef void(SafeBool::* | bool_type )() const |
Protected Member Functions | |
void | this_type_does_not_support_comparisons () const |
Implements the Save Bool Idiom.
Classes deriving off of SafeBool need to implement a 'bool boolean_test()' method. See: http://www.artima.com/cppsource/safebool.html.
Definition at line 19 of file SafeBool.hpp.
Definition at line 22 of file SafeBool.hpp.
Definition at line 26 of file SafeBool.hpp.
void SafeBool< T >::this_type_does_not_support_comparisons | ( | ) | const [inline, protected] |
Definition at line 23 of file SafeBool.hpp.
Referenced by SafeBool< GroupIterator >::operator bool_type(), operator!=(), and operator==().