Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Template classes c friend functions
- template<class T>
- class Class1
- {
- ...
- friend void function1(Class1<Class2<T>>&, const Class2<T>&);
- ...
- };
- template<class V>
- class Class2
- {
- ...
- friend void function2(Class1<V>);
- ...
- };
- template<class V> class Class2;
Add Comment
Please, Sign In to add comment