This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
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 ?
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |