xtl icon indicating copy to clipboard operation
xtl copied to clipboard

Add an automatic casting vector (and array)

Open JohanMabille opened this issue 8 years ago • 0 comments

The use case if for xoptional_sequence: we want to use an uncompressed storage for booleans, so xdynamic_bitset is not suitable. We cannot use vector<bool> because this specialization actually has a compressed storage. So the best option appears to be std::vector<uint_8>, however the boolean value_type must be a boolean and we want to avoid warnings about cast.

JohanMabille avatar Oct 18 '17 14:10 JohanMabille