[ConceptGCC] |
ConceptGCC :does vector require CopyConstructible? |
From: Martin Sebor (sebor_at_[hidden])
Date: 2007-03-04 17:34:17
I expected to see a compilation error for the snippet below
since struct S doesn't meet the CopyConstructible requirement
of vector (23.1, p3). I looked to see if N2085 removes the
requirement but if I'm reading the concept_map for vector
in [lib.sequence.reqmts], p39, right, it's still there. So
my question is: should I expect an error in the case or not,
and if not, why?
struct S { private: S (S&); };
std::vector<S> v;
Thanks
Martin