P
Paulo Matos
Hi all,
Imagine I have (with respective header guards):
foo.h :
namespace foo_ { struct foo {... }; };
Then I can:
bar.h:
#include "foo.h"
struct bar {
...
foo_::foo *xpto;
};
Well, but if I don't want to include foo.h and If foo was not inside
namespace foo_, I could just remove the include directive and replace
it by class foo;. However, since it is inside a namespace, is there to
do this to avoid header inclusion?
Regards,
Paulo Matos
Imagine I have (with respective header guards):
foo.h :
namespace foo_ { struct foo {... }; };
Then I can:
bar.h:
#include "foo.h"
struct bar {
...
foo_::foo *xpto;
};
Well, but if I don't want to include foo.h and If foo was not inside
namespace foo_, I could just remove the include directive and replace
it by class foo;. However, since it is inside a namespace, is there to
do this to avoid header inclusion?
Regards,
Paulo Matos