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 Newsgroups: comp.lang.c++ Subject: Re: taking address of temporary object References: <93e89895-796d-48bb-abd6-3f560410b006@tj4g2000pbc.googlegroups.com> Date: Fri, 10 Feb 2012 17:51:42 +0000 Message-ID: <87zkcqtw41.fsf@gmail.com> 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 "Alf P. Steinbach" 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)