home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!sunic!hagbard!loglule!jbn
- From: jbn@lulea.trab.se (Johan Bengtsson)
- Newsgroups: comp.lang.c++
- Subject: Re: C++ Return Types
- Message-ID: <4722@holden.lulea.trab.se>
- Date: 23 Jul 92 19:15:31 GMT
- References: <23269@alice.att.com>
- Organization: Telia Research AB, Aurorum 6, 951 75 Lulea, Sweden
- Lines: 17
- X-Newsreader: Tin 1.1 + PL3
-
-
- ark@alice.att.com (Andrew Koenig) writes:
- : 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.
-
- ... and assignment operator.
-
- --
- --------------------------------------------------------------------------
- | Johan Bengtsson, Telia Research AB, Aurorum 6, S-951 75 Lulea, Sweden |
- | Johan.Bengtsson@lulea.trab.se; Voice:(+46)92075471; Fax:(+46)92075490 |
- --------------------------------------------------------------------------
-