From -410130240810335147 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f78e5,bc82bd0900b8b4ac X-Google-Attributes: gidf78e5,public X-Google-ArrivalTime: 2000-12-21 07:18:08 PST Path: supernews.google.com!sn-xit-02!supernews.com!news-x.support.nl!newspeer.clara.net!news.clara.net!dispose.news.demon.net!demon!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail From: Niklas Mellin Newsgroups: comp.std.c++ Subject: Re: Feature Request: Fast "find" for sorted random access containers Date: Thu, 21 Dec 2000 15:17:20 GMT Organization: Deja.com Approved: Fergus Henderson , moderator of comp.std.c++ Message-ID: <91t6j2$7cf$1@nnrp1.deja.com> References: <3A3F63A6.527B4E5D@wizard.net> <91qnl7$86m$1@nnrp1.deja.com> X-Trace: mail2news.demon.co.uk 977411847 mail2news:19613 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-Article-Creation-Date: Thu Dec 21 15:11:37 2000 GMT X-Http-User-Agent: Mozilla/4.72 [en] (Windows NT 5.0; I) X-Http-Proxy: 1.0 webproxy.dynas.se:8080 (Squid/2.3.STABLE2), 1.0 x62.deja.com:80 (Squid/1.1.22) for client unknown, 192.71.43.4 X-MyDeja-Info: XMYDJUIDnimel Lines: 40 Xref: supernews.google.com comp.std.c++:3057 In article , remove.haberg@matematik.su.se (Hans Aberg) wrote: > In article <91qnl7$86m$1@nnrp1.deja.com>, Niklas Mellin > wrote: > > >> I have not seen this; please give an example when this diagnostic > >message is issued. > > > >int main() > >{ > > list int_list; > > > > //... > > int_list.begin() + 7; // Will generate diagnostic > > int_list.end() - int_list().begin(); // Will also result in diagnostic > >} > > This just generates an error on my computer (removing "()" of int_list). (The parentheses was a typo). Isn't an error reported by the compiler the same thing as a diagnostic in most cases? /Niklas Mellin Sent via Deja.com http://www.deja.com/ --- [ 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 ] [ Note that the FAQ URL has changed! Please update your bookmarks. ]