This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Concept-check bug ?
- From: Jonathan Wakely <cow at compsoc dot man dot ac dot uk>
- To: libstdc++ at gcc dot gnu dot org
- Date: Fri, 17 Jun 2005 12:53:48 +0100
- Subject: Concept-check bug ?
Hi y'all,
#define _GLIBCXX_CONCEPT_CHECKS
#include <vector>
struct A {
std::vector<A> v;
};
This produces concept-check errors because A is incomplete at the point
of declaring v.
Is this code really illegal, or just a flaw in the concept-checks ?
This causes failures in Boost if concept-checks are enabled, because of
a similar construct.
jon