S
stip
template <typename T>
struct A
{
};
template <typename T>
struct B
{
typedef A<T> A;
};
int
main()
{
return 0;
}
Look at the reuse of "A".
IMHO this is legal. But gcc rejects it:
Declaration of »typedef struct A<T> B<T>::A«
If it is not legal, can someone point me to the corresponding part of
the standard?
Best,
Alex
struct A
{
};
template <typename T>
struct B
{
typedef A<T> A;
};
int
main()
{
return 0;
}
Look at the reuse of "A".
IMHO this is legal. But gcc rejects it:
Declaration of »typedef struct A<T> B<T>::A«
If it is not legal, can someone point me to the corresponding part of
the standard?
Best,
Alex