S
Sergey Lukoshkin
Hello, dear community!
I've faced such a problem:
1. I got header "headerA.h" with the following code:
----------------------------------------
#include "headerB.h"
namespace A
{
class A
{
public:
create_b_ojects()
{
B* pB = new B( this );
}
};
}
-------------------------------------
2. And I got header "headerB.h" with the following code:
-------------------------------------------
namespace B
{
class B
{
public:
B(){}
B( /* here I need to use pointer to object of type A::A
*/ ){....}
};
}
I've faced such a problem:
1. I got header "headerA.h" with the following code:
----------------------------------------
#include "headerB.h"
namespace A
{
class A
{
public:
create_b_ojects()
{
B* pB = new B( this );
}
};
}
-------------------------------------
2. And I got header "headerB.h" with the following code:
-------------------------------------------
namespace B
{
class B
{
public:
B(){}
B( /* here I need to use pointer to object of type A::A
*/ ){....}
};
}