From -2237830720410243953
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,7458762a2c3b301d
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2001-08-23 02:24:00 PST
Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!dispose.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail
From: Nicola Musatti <objectway@divalsim.it>
Newsgroups: comp.std.c++
Subject: Re: Are literals const?
Date: Thu, 23 Aug 2001 09:23:21 GMT
Organization: ObjectWay S.p.A.
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Message-ID: <3B84C702.908D52C6@divalsim.it>
References: <7dc3b1ea.0108220617.421ee131@posting.google.com> <1eykhdu.1cqeruv1s5f35sN%joerg.barfurth@attglobal.net>
Reply-To: Nicola.Musatti@ObjectWay.it
X-Trace: mail2news.demon.co.uk 998558607 mail2news:16484 mail2news mail2news.demon.co.uk
X-Complaints-To: abuse@demon.net
X-Mail2News-Path: news.demon.net!mulga.cs.mu.oz.au
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-Orig-NNTP-Posting-Host: mail.divalsim.it (194.185.113.194)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Orig-X-Trace: fu-berlin.de 998557293 12309779 194.185.113.194 (16 [32913])
X-Accept-Language: en,it
Lines: 19
Xref: archiver1.google.com comp.std.c++:7091



Joerg Barfurth wrote:
[...]
> (Note: rvalues of builtin types are never const.)

Isn't it rather the reverse? rvalues of builtin types aren't modifiable;
moreover, the only way to *directly* modify an rvalue is to call a non
const member function on it.

Best regards,
Nicola Musatti

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html                ]



