From 515593804765537882
X-Google-Thread: f78e5,1130da7a3640a78c
X-Google-Attributes: gidf78e5,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.speakeasy.net!news.speakeasy.net.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 08 May 2006 15:30:02 -0500
Return-Path: <devnull@stump.algebra.com>
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-Original-To: std-c++@mailman.ucar.edu
Delivered-To: std-c++@mailman.ucar.edu
Delivered-To: std-c++@ucar.edu
From: "Peter Dimov" <pdimov@gmail.com>
Newsgroups: comp.std.c++
Subject: Re: Deprecate the use of plain pointers as standard container iterators
Organization: http://groups.google.com
Message-ID: <1147118706.686218.114010@i39g2000cwa.googlegroups.com>
References: <1146830242.416436.272780@g10g2000cwb.googlegroups.com>
   <1146842605.957240.37860@i39g2000cwa.googlegroups.com>
   <1147087120.946744.158720@v46g2000cwv.googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Complaints-To: groups-abuse@google.com
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3,gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: i39g2000cwa.googlegroups.com; posting-host=217.10.248.178;
   posting-account=Y-i6fQwAAAB6stsX7golQUepLL0fOatY
X-Virus-Scanned: amavisd-new at ucar.edu
X-Virus-Scanned: amavisd-new at cs.mu.OZ.AU
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
X-Virus-Scanned: amavisd-new at cs.mu.OZ.AU
Date: Mon,  8 May 2006 15:27:56 CST
Lines: 15
NNTP-Posting-Host: 65.182.171.162
X-Trace: sv3-Fu0u3eb+EUgATvKHPDdiP34TypNkoUC9m/yEVSm7SOLSR1But1BpqxXMa2fOWKDleZDeOiQ/UBRUqxz!WGxPljStn3YhZsmMe5639vlDyrgwSwdNZ2MWz8dafeO5KJ5lK8xVqbBSMlaq/5bPfF29w0GgyrKq!KB6VnKdbMi6Cp/u+1/yuw+7zdJVMFCoQwb6DwKPb/Rg=
X-Complaints-To: abuse@speakeasy.net
X-DMCA-Complaints-To: abuse@speakeasy.net
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.32
Xref: g2news2.google.com comp.std.c++:1823

Nicola Musatti wrote:

> Moreover your own comment is a strong indication that I'm right:
> incrementing an iterator rvalue is OK when it is a class instance, but
> not when it is a scalar temporary? This is the kind of pitfall that
> makes C++ needlessly hard to learn and use.

Not necessarily correct, operator++ is not required to be a member.

---
[ 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.comeaucomputing.com/csc/faq.html                      ]



