Friend with own class template with other template parameter

Viewed 331

Is it possible to declare your own class template with other template parameters as a friend?

template<class T, class... Ts>
class A {
    template<class U> friend class A<U, Ts...>;    //compile error - C3772  'A<U>': invalid friend template declaration 
};
2 Answers
Related