From -6913583947902741997
X-Google-Thread: f78e5,d50382f3e5ec6b4e
X-Google-Thread: 109fba,d50382f3e5ec6b4e
X-Google-Attributes: gidf78e5,gid109fba,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!stump.algebra.com!devnull
From: nesotto@cs.auc.dk ("Thorsten Ottosen")
Newsgroups: comp.std.c++,comp.lang.c++
Subject: Re: The issue of const maps and operator[]
Date: Fri,  3 Dec 2004 02:54:24 GMT
Organization: SunSITE.dk - Supporting Open source
Lines: 27
Sender: mail2news@demon.net
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <41aef8cf$0$66398$14726298@news.sunsite.dk>
References: <3171vsF37jfq7U1@individual.net> <YWxrd.191852$hj.44035@fed1read07>
NNTP-Posting-Host: news.news.demon.net
X-Trace: news.demon.co.uk 1102042473 1240 158.152.254.254 (3 Dec 2004 02:54:33 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Fri, 3 Dec 2004 02:54:33 +0000 (UTC)
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-Priority: 3
X-Virus-Scanned: by amavisd-new at cs.mu.OZ.AU
X-MSMail-Priority: Normal
X-Received: (from fjh@localhost)
	by mulga.cs.mu.OZ.AU (8.12.10+Sun/8.12.9/Submit) id iB32sOon012813;
	Fri, 3 Dec 2004 13:54:24 +1100 (EST)
X-Path: comp-std-cpp-robomod!not-for-mail
X-Delivered-To: std-c++@ucar.edu
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-Newsgroups: comp.std.c++,comp.lang.c++
Xref: g2news1.google.com comp.std.c++:3554 comp.lang.c++:32511

"James Dennett" <jdennett@acm.org> wrote in message 
news:YWxrd.191852$hj.44035@fed1read07...

> In spite of having found several discussions on this topic, I could not
> find mention of whether this issue is going to be addressed when C++
> gets its next major revision.

|I find it enormously unlikely that this would be changed in the
|next revision of C++.

yes true. but we are already looking into adding

T& map<K,T>::at( const Key& );
const T& map<K,T>::at( const Key& ) const;

which should throw if nothing is found.
Alternatively, I guess we could use operator()().

-Thorsten 


---
[ 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.jamesd.demon.co.uk/csc/faq.html                       ]



