Why is libc++'s vector::const_reference not bool -- Howard Hinnant

Discussion about the vector<bool> and its standards conformance.

Why is libc++'s vector<bool>::const_reference not bool?

by Howard Hinnant

From the article:

The motivation for this extension, which is detectable by a conforming program, and thus non-conforming, is to make vector<bool> behave more like vector<char> with respect to references (const and otherwise).

Add a Comment

Comments are closed.

Comments (0)

There are currently no comments on this entry.