vector<const int>()
fails to compile in C++14 (and in C++03).
Under C++03, we can say const int
is not CopyAssignable
, so naturally it fails.
However, under C++14, the wording in the standard is the requirement of T
given vector<T>()
depends on the relevant operation.
I searched the cppreference and the isoc++14 for the corresponding part, but didn't find the reason why const int
fails here.
My question is, where in the standard mentions the requirement of T
given vector<T>()
?