home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!microsoft!wingnut!pauljo
- From: pauljo@microsoft.com (Paul Johns)
- Subject: Re: Make a deep copy!
- Message-ID: <1992Dec23.210224.566@microsoft.com>
- Date: 23 Dec 92 21:02:24 GMT
- Organization: Microsoft Corp.
- References: <kwong.724744711@morgan>
- Distribution: usa
- Lines: 8
-
- Specifically, you need a copy constructor which
- copies the data pointed to by the pointer in the
- object. (You should copy both the actual data
- and the array of pointers--I think you missed
- copying the array of pointers in your assignment
- operator.)
-
- Also, read a good C++ text for other pointers.
-