C
ctor
Hi,
I'm experimenting with using a lot of different namespaces in my
current project to see if it helps me keep my code more organized. In
some ways I'm finding that it causes more problems than it prevents.
My main issue right now is the clutter that gets added when I
forward-declare classes in other namespaces, but maybe I'm not doing
it right. The only way I've found to do it is as follows:
//FOWARD DECLARATIONS
namespace project {
namespace abc {
class ForwardDecalredClass;
};
};
// CLASS DECLARATION
namespace project {
namespace xyz {
...
};
};
If I need to forward declare classes from more than one namespace, it
gets annoyingly messy. Is there a better way?
Thanks.
I'm experimenting with using a lot of different namespaces in my
current project to see if it helps me keep my code more organized. In
some ways I'm finding that it causes more problems than it prevents.
My main issue right now is the clutter that gets added when I
forward-declare classes in other namespaces, but maybe I'm not doing
it right. The only way I've found to do it is as follows:
//FOWARD DECLARATIONS
namespace project {
namespace abc {
class ForwardDecalredClass;
};
};
// CLASS DECLARATION
namespace project {
namespace xyz {
...
};
};
If I need to forward declare classes from more than one namespace, it
gets annoyingly messy. Is there a better way?
Thanks.