From 1801331571761152460
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,f5d433881cc29cff
X-Google-Attributes: gidf78e5,public
From: Pete Becker <petebecker@acm.org>
Subject: Re: Named return value optimisation- reprise.
Date: 1997/06/18
Message-ID: <33A7FC67.39D@acm.org>#1/1
X-Deja-AN: 249363323
References: <33a345bf.7425526@news.ipswich.gil.com.au> <33A478C1.329@acm.org> <33a4e2d5.24720499@news.ipswich.gil.com.au> <33A54D26.F46@acm.org> <5o3v6c$cv3@mulga.cs.mu.OZ.AU> <33A5A723.E9F@acm.org> <5o5mgd$mkv@mulga.cs.mu.OZ.AU> <33A6A1F9.D0E@acm.org> <5o7nd2$4ms@mulga.cs.mu.OZ.AU>
X-Original-Date: Wed, 18 Jun 1997 11:19:03 -0400
Organization: Pete Becker Consulting
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBVAwUBM6gLVky4NqrwXLNJAQEFSAH/aBq4Z1XsnjIIfU6N0cunIOrLmDdhOY5A 9E1pxAw2jQeur91GypZ48WwvqR72YNSXIMajeLqqubMrGHRa9k2ZvA== =aF+p
Reply-To: petebecker@acm.org
Newsgroups: comp.std.c++
Originator: austern@isolde.mti.sgi.com


Fergus Henderson wrote:
> 
> 
> Nope, your two example classes _are_ different from the outside:
> 
>         const C2 c2;
>         const_cast<C2&>(c2).set_data(42);       // fine
> 
>         const C1 c1;
>         const_cast<C1&>(c1).set_data(42);       // undefined behaviour
> 

Fine, you thought of a way in which my brief example fell a bit short of
perfection. Are you being deliberately obtuse, or are you really missing
the point of this discussion? Either way, I'm through wasting my time on
this discussion.
	-- Pete
---
[ comp.std.c++ is moderated.  To submit articles: Try just posting with your 
                newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  Comments? mailto:std-c++-request@ncar.ucar.edu 
]



