actually remove operator bool, but keep operator WType
This commit is contained in:
parent
47f3933489
commit
32ec1fbc77
|
|
@ -833,17 +833,6 @@ operator WType () const {
|
|||
return _word;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: BitMask::operator bool
|
||||
// Access: Published
|
||||
// Description: Will return true, unless all bits are off.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
template<class WType, int nbits>
|
||||
INLINE BitMask<WType, nbits>::
|
||||
operator bool () const {
|
||||
return (_word != 0);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: BitMask::get_key
|
||||
// Access: Published
|
||||
|
|
|
|||
|
|
@ -118,6 +118,8 @@ PUBLISHED:
|
|||
INLINE void operator <<= (int shift);
|
||||
INLINE void operator >>= (int shift);
|
||||
|
||||
INLINE operator WType () const;
|
||||
|
||||
INLINE void flood_down_in_place();
|
||||
INLINE void flood_up_in_place();
|
||||
INLINE BitMask<WType, nbits> flood_bits_down() const;
|
||||
|
|
|
|||
Loading…
Reference in New Issue