What type should std::remove_cv<const int[3]>
produce? int[3]
or const int[3]
?
const int[3]
is an array of 3 const int
right?, and has no top-level cv-qualifier. So shouldn't it produce const int[3]
? Latest version of gcc/libstdc++ is producing int[3]
I think. Is this a bug? Why / why not?
const
array of 3int
.) – Solitarytemplate <typename T> struct remove_cv<T const> { using type = T; };
. I don't thinkT const[N]
would match that specialization. – Vershen