Re: destructor, assignment op, and copy constr in Date
Posted by Luigi Ballabio-3 on Dec 21, 2000; 1:18pm
URL: http://quantlib.414.s1.nabble.com/destructor-assignment-op-and-copy-constr-in-Date-tp1646p1647.html
At 12:56 PM 12/21/00 +0100, Gilbert Peffer wrote:
>Personally I prefer to always define the operator= and the copy constructor,
>independently of the class containing dynamic memory allocation.
Ouch. We might be talking of a major pain in the neck here... Also, one has
to keep track of these things. To add a data member and forget to add it to
the operator= and the copy constructor is a tad too easy for my likings.
Just my thoughts,
Luigi