I\'m working with a user-defined quantity of bits (I\'m holding a three-dimensional array of bits, so the size increases cubically - assume no less then 512 bits), and need
I would suggest using the BITSCAN library, as an alternative to Boost:dynamic_bitset. A comparative survey can be found here.