home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!cs.utexas.edu!wupost!uwm.edu!linac!att!att!allegra!alice!ark
- From: ark@alice.att.com (Andrew Koenig)
- Newsgroups: comp.lang.c++
- Subject: Re: C++ Return Types
- Message-ID: <23269@alice.att.com>
- Date: 21 Jul 92 22:30:37 GMT
- Article-I.D.: alice.23269
- References: <BrMJyE.FBM@watserv1.waterloo.edu> <1992Jul19.152207.1@cstp.umkc.edu> <23240@alice.att.com> <1992Jul21.112354.1@vax1.umkc.edu>
- Reply-To: ark@alice.UUCP ()
- Organization: AT&T Bell Laboratories, Liberty Corner NJ
- Lines: 10
-
- In article <1992Jul21.112354.1@vax1.umkc.edu> kramasamy@vax1.umkc.edu writes:
-
- > If we adopt the second solution for the above class definition we run
- > into problems of deallocating 'ptr' thro' destructor and the calling routine will
- > get a garbage bitmap. How can we return for such cases?
-
- By making sure the bitmap class has a properly defined copy constructor.
- --
- --Andrew Koenig
- ark@europa.att.com
-