Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #13887

Re: taking address of temporary object

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeder2.ecngs.de!ecngs!feeder.ecngs.de!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date Fri, 10 Feb 2012 11:51:41 -0600
From Gareth Owen <gwowen@gmail.com>
Newsgroups comp.lang.c++
Subject Re: taking address of temporary object
References <93e89895-796d-48bb-abd6-3f560410b006@tj4g2000pbc.googlegroups.com> <jh38ck$2uj$1@dont-email.me>
Date Fri, 10 Feb 2012 17:51:42 +0000
Message-ID <87zkcqtw41.fsf@gmail.com> (permalink)
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)
Cancel-Lock sha1:+qS8PYt7KFoQ3+ZJVeE/uxSJ4oY=
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Lines 7
X-Usenet-Provider http://www.giganews.com
X-Trace sv3-sewaKe512YZsDHIygkaEijwy36a9xILAF1RxaLb6FRUeH1t1hH+Fp34ipBqOwvVfxYnGJuGIQqZrIBl!z/L6C2JC7aD0VA9IpTN3jExMv0cX598LTRUjOJXOC6MWoTlcm8xEsKrqQkRzYN6PbrA=
X-Abuse-and-DMCA-Info Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info Otherwise we will be unable to process your complaint properly
X-Postfilter 1.3.40
X-Original-Bytes 1331
Xref x330-a1.tempe.blueboxinc.net comp.lang.c++:13887

Show key headers only | View raw


"Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> writes:

> The Holy Standard does not permit using the built-in address operator
> to take the address of a temporary.

Presumably you can call an over-ridden unary & operator?
(which isn't to say that to do so isn't a horrible design decision)

Back to comp.lang.c++ | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

taking address of temporary object "V.Subramanian, India" <subramanian100in@yahoo.com> - 2012-02-10 05:44 -0800
  Re: taking address of temporary object Victor Bazarov <v.bazarov@comcast.invalid> - 2012-02-10 08:53 -0500
  Re: taking address of temporary object "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2012-02-10 15:08 +0100
    Re: taking address of temporary object Gareth Owen <gwowen@gmail.com> - 2012-02-10 17:51 +0000

csiph-web