Hello, On Wed, 2003-06-11 at 15:29, Vasudevan Sambasivam wrote: > > The question I have is with the "new" objects being created (in this > case FileSink and DefaultEcnryptor). How does these gets deleted?
I also jumped straight into test.cpp and thought it was just a sloppy example - it isn't. Check out the Readme.txt: "If a constructor for A takes a pointer to an object B (except primitive types such as int and char), then A owns B and will delete B at A's destruction. If a constructor for A takes a reference to an object B, then the caller retains ownership of B and should not destroy it until A no longer needs it." Regards, -- Pat Deegan, http://www.psychogenic.com/ PGP: http://www.keyserver.net 0x03F86A50
