B
Belebele
I would like to have as friend of a class a partial specialization of
a class template. Is that allowed? The code below fails to compile.
How could I achieve that effect?
template <typename> class Friend {};
class HasFriend {
template <typename T>
friend class Friend<T*>;
};
a class template. Is that allowed? The code below fails to compile.
How could I achieve that effect?
template <typename> class Friend {};
class HasFriend {
template <typename T>
friend class Friend<T*>;
};