A
Anand
I've a singleton object declaration in C++ in which there are other
classes' POINTERS declared as private members as shown below.
// CSingleton.h
Class Singleton
{
private:
CObject1 *obj1; // defined inCObject1.h
CObject2 *obj2; // defined in CObject2.h
Cobject3 *obj3; // defined in CObject3.h
}
I'm on a HP-UX, and in one of the cpp files the Singleton object is
created(CSingleton.h). If one of the objects viz., CObject ; CObject2
;
CObject3 changes (ie., a change in the header)will i have to recompile
the cpp file.?? As of now, I recompile the cpp before execution.
Incase if I choose not to recompile the cpp file, will it cause any
future errors which might go undetected during compilation??
Regards
Anand
classes' POINTERS declared as private members as shown below.
// CSingleton.h
Class Singleton
{
private:
CObject1 *obj1; // defined inCObject1.h
CObject2 *obj2; // defined in CObject2.h
Cobject3 *obj3; // defined in CObject3.h
}
I'm on a HP-UX, and in one of the cpp files the Singleton object is
created(CSingleton.h). If one of the objects viz., CObject ; CObject2
;
CObject3 changes (ie., a change in the header)will i have to recompile
the cpp file.?? As of now, I recompile the cpp before execution.
Incase if I choose not to recompile the cpp file, will it cause any
future errors which might go undetected during compilation??
Regards
Anand