What happens when you call data() on a std::vector?

It won’t compile, unless your implementation has a non-standard extension. The specialisation of std::vector<bool>, as specified in C++11 23.3.7/1, doesn’t declare a data member.

Leave a Comment