B
Bryan Bullard
i have a class that contains a private pointer to a system resource. i'm
quite sure that i will need to have a user defined copy-constructor to do a
deep copy. can someone put me in the right direction (that is, simplified
material or examples)?
-bryan
ps: the private variable that needs attention points to a critical section
semaphore (used to synch access to the object) that is dynamically
allocated/deallocated in ctor/dtor respectively. i believe that a mere
shallow copy will result in deadlock.
quite sure that i will need to have a user defined copy-constructor to do a
deep copy. can someone put me in the right direction (that is, simplified
material or examples)?
-bryan
ps: the private variable that needs attention points to a critical section
semaphore (used to synch access to the object) that is dynamically
allocated/deallocated in ctor/dtor respectively. i believe that a mere
shallow copy will result in deadlock.