--- trunk/OOPSE-2.0/src/utils/BitSet.hpp 2005/02/16 19:36:30 2037 +++ trunk/OOPSE-2.0/src/utils/BitSet.hpp 2005/02/17 15:23:56 2043 @@ -81,12 +81,12 @@ class BitSet { /** Returns true if no bits are set to true */ bool none(); - int firstOffBit() { return !bitset_[0] ? 0 : nextOffBit(0); } + int firstOffBit() const { return !bitset_[0] ? 0 : nextOffBit(0); } /** Returns the index of the first bit that is set to false that occurs on or after the specified starting index.*/ int nextOffBit(int fromIndex) const; - int firstOnBit() { return bitset_[0] ? 0 : nextOnBit(0); } + int firstOnBit() const { return bitset_[0] ? 0 : nextOnBit(0); } /** Returns the index of the first bit that is set to true that occurs on or after the specified starting index. */ int nextOnBit(int fromIndex) const;