A
Alexander Stippler
Hi,
I'm not quite sure if I have to use the keyword template in a situation,
where my compiler enforces it, though I think it is not neccessary. My
question is: Who is wrong with respect to the standard - the compiler or I?
template <typename T>
struct A
{
template <typename C>
bool
test();
static size_t value = sizeof(A<T>::test<T>());
};
Do I need to qualify test by 'template'. IMO no.
It would be different in a context like
sizeof(T::template test<T>())
Am I wrong?
regards,
alex
I'm not quite sure if I have to use the keyword template in a situation,
where my compiler enforces it, though I think it is not neccessary. My
question is: Who is wrong with respect to the standard - the compiler or I?
template <typename T>
struct A
{
template <typename C>
bool
test();
static size_t value = sizeof(A<T>::test<T>());
};
Do I need to qualify test by 'template'. IMO no.
It would be different in a context like
sizeof(T::template test<T>())
Am I wrong?
regards,
alex