@@ -208,7 +208,7 @@ namespace bowen
208208
209209 reference operator [](size_t pos)
210210 {
211- #ifndef BITVECTOR_DISABLE_BOUNDS_CHECK
211+ #ifndef BITVECTOR_NO_BOUND_CHECK
212212 if (pos >= m_size){
213213 std::stringstream ss;
214214 ss << " bitvector index out of range" << " pos: " << pos << " size: " << m_size << std::endl;
@@ -223,7 +223,7 @@ namespace bowen
223223
224224 bool operator [](size_t pos) const
225225 {
226- #ifndef BITVECTOR_DISABLE_BOUNDS_CHECK
226+ #ifndef BITVECTOR_NO_BOUND_CHECK
227227 if (pos >= m_size){
228228 std::stringstream ss;
229229 ss << " bitvector index out of range" << " pos: " << pos << " size: " << m_size << std::endl;
@@ -235,7 +235,7 @@ namespace bowen
235235 return (m_data[word_index] & mask) != 0 ;
236236 }
237237 inline void set_bit (size_t pos, bool value){
238- #ifndef BITVECTOR_DISABLE_BOUNDS_CHECK
238+ #ifndef BITVECTOR_NO_BOUND_CHECK
239239 if (pos >= m_size){
240240 std::stringstream ss;
241241 ss << " bitvector index out of range" << " pos: " << pos << " size: " << m_size << std::endl;
@@ -322,7 +322,7 @@ namespace bowen
322322 }
323323 void incrementUntilZero (size_t & pos){
324324 // Ensure the position is within bounds
325- #ifndef BITVECTOR_DISABLE_BOUNDS_CHECK
325+ #ifndef BITVECTOR_NO_BOUND_CHECK
326326 if (pos >= m_size){
327327 std::stringstream ss;
328328 ss << " bitvector index out of range" << " pos: " << pos << " size: " << m_size << std::endl;
0 commit comments