1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #if ( defined(__SUNPRO_CC) && BOOST_WORKAROUND(__SUNPRO_CC, < 0x570) ) || defined(__CINT__)
- operator bool () const
- {
- return px != 0;
- }
- #elif defined( _MANAGED )
- static void unspecified_bool( this_type*** )
- {
- }
- typedef void (*unspecified_bool_type)( this_type*** );
- operator unspecified_bool_type() const
- {
- return px == 0? 0: unspecified_bool;
- }
- #elif \
- ( defined(__MWERKS__) && BOOST_WORKAROUND(__MWERKS__, < 0x3200) ) || \
- ( defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ < 304) ) || \
- ( defined(__SUNPRO_CC) && BOOST_WORKAROUND(__SUNPRO_CC, <= 0x590) )
- typedef T * (this_type::*unspecified_bool_type)() const;
- operator unspecified_bool_type() const
- {
- return px == 0? 0: &this_type::get;
- }
- #else
- typedef T * this_type::*unspecified_bool_type;
- operator unspecified_bool_type() const
- {
- return px == 0? 0: &this_type::px;
- }
- #endif
-
- bool operator! () const
- {
- return px == 0;
- }
|