How to - forward declare a nested class or all within namespace?
How to - forward declare a nested class or all also within namespace, -
If there is inclusion of declared class to declared earlier in other file ? So - impossible to make a include?
Thanks.
(double side reference) ??
Like:
file1.h ----
#include "file2.h"
namespace 1_2
{
class 1
{
public:
host* member_host;
class 2{};
};
}
file2.h---
//impossible to include file1.h !!! -only forward declarations !
class host
{
class2* member; //Errors - 'class2 -undefined'
};
};#include "file2.h" #include "file2.h"
this not works with multiple type -inclusions
this not works with type -inclusions
class - within class-within namespace.
In my sample how you can resolve that forward definition
class namespace 1_2::class1::class2;
generates "use of undefined class1" Error.??
no any forward declaration at your sample ?
Sorry, - important -
file2 must be included to class 1, by conditions
at that forward declaration of?
of N::A::B
must be..
How it can be?