You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
175 B

class X
{
friend class A;
};
template <typename T1, typename T2>
class B
{
};
template <class T>
struct C
{
};
class D
{
B<D, class A> x;
friend struct C<A>;
};