jeudi 2 juillet 2015

Why can't I pass a type member of a class as a template parameter?

For example

std::array<int, 1> a;
std::array<typename a::value_type, 1> a2;

won't compile.

What is the reason for this, and what is a workaround?

Aucun commentaire:

Enregistrer un commentaire