Original Post
I want to declare template class, somthing like this: However, I get compile errors and it seems to be wrong. How do I do that? Thanks in advance.
template <class T>
class B<T>;
template <class T>
class A {
friend class B<T>;
};
template <class T>
class B {
};