Remove a workaround for CodeWarrior 8

This commit is contained in:
Gennaro Prota
2025-06-21 14:51:00 +02:00
parent 9e164b9db7
commit 174050bee8

View File

@@ -1040,14 +1040,7 @@ dynamic_bitset<Block, Allocator>&
dynamic_bitset<Block, Allocator>::reset(size_type pos)
{
assert(pos < m_num_bits);
#if defined __MWERKS__ && BOOST_WORKAROUND(__MWERKS__, <= 0x3003) // 8.x
// CodeWarrior 8 generates incorrect code when the &=~ is compiled,
// use the |^ variation instead.. <grafik>
m_bits[block_index(pos)] |= bit_mask(pos);
m_bits[block_index(pos)] ^= bit_mask(pos);
#else
m_bits[block_index(pos)] &= ~bit_mask(pos);
#endif
return *this;
}