I have a class template
template< typename G, int N > class Foo { /* ... */ };
I want the specialization for N=0
to be a friend of another class, but I don't know the syntax for it (and I could not find it out myself). I tried:
template< typename T >
class Bar {
template< typename G > friend class Foo< G, 0 >;
/* ... */
};
I want for any type G Foo< G, 0 >
to be a friend of class Bar< T >
. What is the correct syntax for this?
Thank you!