J
john smith
Hi, I have a class like so...
template<class XV, class T> class Foo {
Bar<T>* b;
};
and another class
template<class T> class Bar {
public:
friend template<class XV, class T> class Foo<XV,T>; // wrong
friend class Foo;
// wrong
friend class Foo<XV,T> //
wrong
};
so what is the correct way to give Foo access to Bar's members? Thanks..
Smith
template<class XV, class T> class Foo {
Bar<T>* b;
};
and another class
template<class T> class Bar {
public:
friend template<class XV, class T> class Foo<XV,T>; // wrong
friend class Foo;
// wrong
friend class Foo<XV,T> //
wrong
};
so what is the correct way to give Foo access to Bar's members? Thanks..
Smith