クラステンプレートがあります
template< typename G, int N > class Foo { /* ... */ };
の特殊化を別のクラスのフレンドにしたいのですがN=0、その構文がわかりません (そして、自分で見つけることができませんでした)。私は試した:
template< typename T >
class Bar {
template< typename G > friend class Foo< G, 0 >;
/* ... */
};
Foo< G, 0 >どのタイプのGも の友達になりたいですclass Bar< T >。これの正しい構文は何ですか?
ありがとうございました!