I need to use a memeber function of a templated class 'B' as a friend function to another templated class 'A'. In order to do this I need to make a forward delcaration of 'B'.
-For the forward declaration I have:
template <class T>
class B;
-The declaration of the friend function inside 'A'
friend void B< T >::function();
This code DOES work when I compile with g++, but in .net when it reaches the friend declaration it says function is not a member function of B. What is the proper syntax to get this working?
Thanks!