M
Mike - EMAIL IGNORED
Following 14.5.3, I tried:
class A
{
template<class T> friend class B;
};
where A is a simple non-template class and B is a template.
I tried to use a private method in B from a method in A.
Using gcc-3.2, this fails at compile time, but succeeds
when the method in B is made public.
Is this a compiler bug, or am I missing something?
Thanks for your help.
Mike.
class A
{
template<class T> friend class B;
};
where A is a simple non-template class and B is a template.
I tried to use a private method in B from a method in A.
Using gcc-3.2, this fails at compile time, but succeeds
when the method in B is made public.
Is this a compiler bug, or am I missing something?
Thanks for your help.
Mike.