I have a class as follows,
template<size_t N>
class A
{
typedef int(*ARRAY)[N];
array getArray();
ARRAY array;
};
Then how can I use the type ARRAY
in the definition? I have tried this
template<size_t N>
ARRAY A<N>::getArray()
{
return array;
}
But, it tells me that ARRAY
is not defined.
Aucun commentaire:
Enregistrer un commentaire