J
Juha Nieminen
Suppose I have something along the lines of:
class A
{
void somePrivateFunction();
};
template<typename T>
class B
{
public:
void foo(A* a)
{
a->somePrivateFunction();
}
};
I would like to say inside A that *any* instantiation of B (regardless
of the template parameter T) is a friend. I would like to do so without
making A a template class.
Is this impossible?
class A
{
void somePrivateFunction();
};
template<typename T>
class B
{
public:
void foo(A* a)
{
a->somePrivateFunction();
}
};
I would like to say inside A that *any* instantiation of B (regardless
of the template parameter T) is a friend. I would like to do so without
making A a template class.
Is this impossible?