A
Asfand Yar Qazi
Basically this:
//file 'B.hh'
class B
{
protected:
void f() {}
};
//file 'C.hh'
#include "B.hh"
class C
{
public:
void doit(B& arg)
{
// do some stuff
arg.f();
}
};
Apparently I can't do this (according to GCC 3.3.1). Any tips on how to
achieve this, considering I do not want to do something like the following?
class C;
class B
{
friend class C;
....
Thanks,
Asfand Yar
//file 'B.hh'
class B
{
protected:
void f() {}
};
//file 'C.hh'
#include "B.hh"
class C
{
public:
void doit(B& arg)
{
// do some stuff
arg.f();
}
};
Apparently I can't do this (according to GCC 3.3.1). Any tips on how to
achieve this, considering I do not want to do something like the following?
class C;
class B
{
friend class C;
....
Thanks,
Asfand Yar