T
thomas
for the following two files, it has a problem of recursive inclusion.
Is there a mechanism like class declaration to solve the problem?
---header1.h---
#include "header2.h"
class class1{
public:
void method1(class2 &ins);
};
--header2.h---
#include "header1.h"
class class2{
class1 *ptr;
public:
...
};
Is there a mechanism like class declaration to solve the problem?
---header1.h---
#include "header2.h"
class class1{
public:
void method1(class2 &ins);
};
--header2.h---
#include "header1.h"
class class2{
class1 *ptr;
public:
...
};