M
Michael
Ok, I'm just checking i'm on the right lines:
sorry if i make a mistake with any strict definitions of things
in a .h , try and put:
class declaration (prototype)
relevant forward declarations for pointers in the class,
#includes required for the objects aggregated in the class
#includes required for base-classes
#includes for templates
in .cpp we put:
class definition
#includes to resolve the forward declarations in the .h if the pointer
declarations are used.
#defines for class
Where do the namespace 'definitions' go, I've been putting them around both
files
Also where to globals go, I would have though the .h with Guard headers?
Thanks Mike
sorry if i make a mistake with any strict definitions of things
in a .h , try and put:
class declaration (prototype)
relevant forward declarations for pointers in the class,
#includes required for the objects aggregated in the class
#includes required for base-classes
#includes for templates
in .cpp we put:
class definition
#includes to resolve the forward declarations in the .h if the pointer
declarations are used.
#defines for class
Where do the namespace 'definitions' go, I've been putting them around both
files
Also where to globals go, I would have though the .h with Guard headers?
Thanks Mike