From -5389643961386398835
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,50f0ad542032bb80
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 1991-08-29 21:23:26 PST
Path: gmdzi!unido!mcsun!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!att!dptg!ulysses!andante!alice!ark
From: ark@alice.att.com (Andrew Koenig)
Newsgroups: comp.std.c++
Subject: Re: It's a lot worse than it sounds (was Re: The problem with temp...)
Keywords: nasty ugly pain operators strings owiee
Message-ID: <20797@alice.att.com>
Date: 29 Aug 91 14:34:31 GMT
References: <1991Aug15.072052.13383@eua.ericsson.se> <15751@goofy.Apple.COM> <15848@goofy.Apple.COM>
Reply-To: ark@alice.UUCP ()
Organization: AT&T Bell Laboratories, Liberty Corner NJ
Lines: 13

In article <15848@goofy.Apple.COM> mitch@Apple.COM (Mitch Adler) writes:

> But this uses the copy constructor, and makes an extra copy (forcing
> us to define MyObject pointer types if we want effeciency).

> Ok, I can deal with that.

So can some compilers -- the call to the copy constructor can
often be optimized away.  This is especially likely if the
function in question is inline.
-- 
				--Andrew Koenig
				  ark@europa.att.com


