From -8320476040130086532
X-Google-Thread: f78e5,1130da7a3640a78c
X-Google-Attributes: gidf78e5,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: g2news2.google.com!news3.google.com!news.glorb.com!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsinpeer00.lnd.ops.eu.uu.net!emea.uu.net!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!stump.algebra.com!devnull
From: thorsten.ottosen@dezide.com (Thorsten Ottosen)
Newsgroups: comp.std.c++
Subject: Re: Deprecate the use of plain pointers as standard container iterators
Date: Mon,  8 May 2006 21:35:06 GMT
Lines: 37
Sender: mail2news@demon.net
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <445f8143$0$60780$157c6196@dreader1.cybercity.dk>
References: <1146830242.416436.272780@g10g2000cwb.googlegroups.com>   <1146842605.957240.37860@i39g2000cwa.googlegroups.com>   <e3g12a$leh$1@news.Stanford.EDU>   <445bb6ab$0$60786$157c6196@dreader1.cybercity.dk> <1147079138.333986.116570@e56g2000cwe.googlegroups.com>
NNTP-Posting-Host: news.news.demon.net
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.demon.co.uk 1147124111 20084 158.152.254.254 (8 May 2006 21:35:11 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Mon, 8 May 2006 21:35:11 +0000 (UTC)
X-Original-To: std-c++@mailman.ucar.edu
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
X-Accept-Language: en-us, en
X-Virus-Scanned: amavisd-new at cs.mu.OZ.AU
X-Received: (from fjh@localhost)
	by mulga.cs.mu.OZ.AU (8.12.10+Sun/8.12.9/Submit) id k48LZ6BP025219;
	Tue, 9 May 2006 07:35:06 +1000 (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-Newsgroups: comp.std.c++
Xref: g2news2.google.com comp.std.c++:1826

ThosRTanner wrote:
> Thorsten Ottosen wrote:
> 
>>Seungbeom Kim wrote:
>>
>>
>>>Maybe the best resolution would be to incorporate boost::next and
>>>boost::prior into the standard, but I don't see it even in TR1...
>>
>>We're working on it.
>>
>>Please see
>>
>>http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1870.html#add-iterator-utilities-from-boost
>>
> 
> 
> Hmm. You wouldn't like to add copy_if to that list, would you?

I think there is someone doing that elsewhere. Anyhow,
the _if and _copy variants of algorihtms are actually misplaced: they 
specify orthogonal behavior which should not be part of the algorithm.

I'm working on something that will replace those variants. For example, 
any xxx_if variant can be replaced by

vector<int> v;
xxx( v | filtered( pred ) );

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



