Login  Register

RE: destructor, assignment op, and copy constr in Date

Posted by Gilbert Peffer on Dec 21, 2000; 1:09pm
URL: http://quantlib.414.s1.nabble.com/destructor-assignment-op-and-copy-constr-in-Date-tp1646p1648.html

> >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.
>
That's OK with me if everybody is happy about it. It was just that if you
got a pointer data member in there, you will have to define them anyway. And
most of the time you got ...

Gilbert