template<typename T, typename U>
struct A;
template<std::size_t I>
struct A<int, char[I]> {
using pointer = T*; // does not compile
};
int main() {
A<int, char[3]> a;
}
Is there any way to access the type T
(= int
) from inside the class template specialization A<int, char[I]>
, without explicitly writing the type that is has in the specialization?
Aucun commentaire:
Enregistrer un commentaire