You can use a container of bools instead. It may or may not be less space efficient, but it certainly is less limiting than using the bits of an int.