logoalt Hacker News

Lvl999Noobtoday at 3:04 AM1 replyview on HN

Agreed. Instead of special casing Boolean arrays to be packed, it's better to have standard Boolean arrays and bitarrays as separate types.


Replies

NekkoDroidtoday at 6:13 AM

They should have made `std::bitset<std::dynamic_extent>` what todays `std::vector<bool>` is (actually maybe not, `std::bitset` is fixed sized, just compile time fixed size). While at it also make `std::array<std::dynamic_extent>` a runtime fixed size array.