When I try to compile my following code , I receive an error that Test does not name a type. How is this possible as I seem to have included the header files correctly? Thanks in advance.
//Test.h
#include "Test2.h"
class Test
{
Test2 t2;
};
//Test2.h
#include "Test.h"
class Test2
{
Test t;
};
//main.cpp
#include "Test.h"
int main()
{
}