M
Mr Dyl
I'm trying to declare the following friendship and VS.Net 2003 is
complaining:
template <class T>
class Outter
{
class Inner {...}
...
}
class A
{
template <class T> friend class Outter;
template <class T> friend class Outter<T>::Inner;
}
On the second friend declaration I get the error "'Outter::Inner'
cannot be redeclared in the current scope".
Any ideas? Is this a syntax issue or does the standard actually not
allow this?
Many thanks!!
complaining:
template <class T>
class Outter
{
class Inner {...}
...
}
class A
{
template <class T> friend class Outter;
template <class T> friend class Outter<T>::Inner;
}
On the second friend declaration I get the error "'Outter::Inner'
cannot be redeclared in the current scope".
Any ideas? Is this a syntax issue or does the standard actually not
allow this?
Many thanks!!