| | List |
| Subject: | Re: again the problem: the destructor is called twice |
| Poster: | rpbg123@yahoo.com(RolandPibinger) |
| Date: | Fri, 23 Mar 2007 20:24:29 GMT |
| Related Postings: | 1 2 3 4 5 6 7 8 9 |
On 23 Mar 2007 12:26:52 -0700, "David" wrote:
>I think I need a "deep copy" in my copyconstructor.
You need no copy constructor at all. You can and, IMO, should
implement your library with disabled (= private) copy constructors and
assignmet operators. There is no need to duplicate and dynamically
allocate objects.
Best wishes,
Roland Pibinger
|
|