Inconsistent definition of vector<bool> specialization (again)

Arvid Bessen bessen@rhrk.uni-kl.de
Thu Mar 8 02:53:00 GMT 2001


Hello!

In
http://gcc.gnu.org/ml/libstdc++/1999-q4/msg00222.html
Scott Snyder reported that including both <vector> and <queue> results in
a broken vector<bool>, since sometimes the specialization is used and
sometimes not, which I think is fixed now.
In our project (using gcc 2.95.2.1 and the accompanying libstdc++) we had
the same problem, because the project has been running quite long and we
mixed 
#include <vector>
with
#include <vector.h> // old style
since it only states
#include <stl_vector.h>
in vector.h.
Perhaps this has been fixed already in libstdc++-v3, but in the
2001-03-05 snapshot of gcc <backward/vector.h> still only includes
<bits/stl_vector.h>.

Is this behaviour wanted?

Best regards,
Arvid



More information about the Libstdc++ mailing list