This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Inconsistent definition of vector<bool> specialization (again)
- To: libstdc++ at sourceware dot cygnus dot com
- Subject: Inconsistent definition of vector<bool> specialization (again)
- From: Arvid Bessen <bessen at rhrk dot uni-kl dot de>
- Date: Thu, 8 Mar 2001 11:53:24 +0100 (MEZ)
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