From 5913255185403675859
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,7c21e57f4a25e5f3
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2001-05-03 05:46:01 PST
Path: newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!212.74.64.35!colt.net!dispose.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail
From: jpotter@falcon.lhup.edu (John Potter)
Newsgroups: comp.std.c++
Subject: Re: deleted pointers in a container
Date: Thu,  3 May 2001 12:45:06 GMT
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Message-ID: <3af0c605.115063059@news.csrlink.net>
References: <3AF03AEA.1A6CBA81@jps.net> <9cq236$es1mc$1@ID-3706.news.dfncis.de> <3AF09397.2A02A060@acm.org> <9cqc9q$f169l$1@ID-3706.news.dfncis.de> <3AF0BE2C.F07A2FB7@acm.org>
X-Trace: mail2news.demon.co.uk 988893911 mail2news:23119 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-Newsreader: Forte Free Agent 1.11/32.235
NNTP-Posting-Date: Wed, 02 May 2001 22:46:30 EDT
Lines: 18
Xref: newsfeed.google.com comp.std.c++:4323

On Thu,  3 May 2001 02:15:14 GMT, James Dennett <jdennett@acm.org>
wrote:

> > |        pc++;
> 
> Syntactically fine, but not legal if pc = &ci (as written above).

It's valid.  See 5.7/4.  For pointer arithmetic, objects act like
arrays of size one.

John

---
[ 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                ]



