Below code gives me:
In member function ‘void A::method()’:error: incomplete type ‘B’ used in nested name specifier B::meth();
I searched for solution to this error on SO found that I could use ::
but didnt help
class B;
class A
{
public:
void method()
{
B::meth();
}
};
class B
{
public:
void static meth()
{
}
};