Hi, got a possibly stupid question. I have 2 header files each containing class definitions along the lines of:
Merging the files together isn't possible. Changing the class definitions isn't possible (I am using them but did not write them).
How can I get this to compile?
Code:
// Header1.h
#pragma once
#include "Header2.h" // for Class2
class ClassA
{
Class2 m_class1;
};
class ClassB
{
int whatever;
};
Code:
// Header2.h
#pragma once
#include "Header1.h" // for ClassB
class Class1
{
ClassB m_classB;
}
class Class2
{
int someThing;
};
How can I get this to compile?
Comment