From 32ec1fbc776314b7eef66dae8ae30e24c0c69d9a Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 19 Mar 2012 09:41:49 +0000 Subject: [PATCH] actually remove operator bool, but keep operator WType --- panda/src/putil/bitMask.I | 11 ----------- panda/src/putil/bitMask.h | 2 ++ 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/panda/src/putil/bitMask.I b/panda/src/putil/bitMask.I index 53bdbe48fd..125bf564d1 100644 --- a/panda/src/putil/bitMask.I +++ b/panda/src/putil/bitMask.I @@ -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 -INLINE BitMask:: -operator bool () const { - return (_word != 0); -} - //////////////////////////////////////////////////////////////////// // Function: BitMask::get_key // Access: Published diff --git a/panda/src/putil/bitMask.h b/panda/src/putil/bitMask.h index fdc3b58fc1..318ced9665 100644 --- a/panda/src/putil/bitMask.h +++ b/panda/src/putil/bitMask.h @@ -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 flood_bits_down() const;