In my *_user.h file generated by PeerGenerator, I would
like to have a pointer to a class in a seperate
namespace.
e.g.
MyClass_user.h contains:
::somenamespace::MyOtherClass* pMy;
As far as I know, in order to do this I need the forward
declaration to be outside of the generated namespaces.
At the moment I edit the generated header file to put in
the forward declaration, but I wonder if you could add
another include before the generated namespaces that
includes a file like *_user.h for forward declarations.
e.g.
MyClass_user_fwd.h contains:
namespace somenamespace {
class MyOtherClass;
}
Maybe it would be a good idea to put comments in the
generated _user.h files to suggest what ought to go in
them.