From -9173460185246056759
X-Google-Thread: f78e5,e4aa14519cca09ff
X-Google-Attributes: gidf78e5,public
X-Google-Language: ENGLISH,ASCII
Path: g2news1.google.com!news1.google.com!proxad.net!newsfeed.stueberl.de!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!stump.algebra.com!devnull
From: kon@iki.fi (Kalle Olavi Niemitalo)
Newsgroups: comp.std.c++
Subject: Re: My nitpicks on n1774
Date: Wed, 11 May 2005 01:35:16 GMT
Organization: Oulun Puhelin Oyj - Baana
Lines: 23
Sender: mail2news@demon.net
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <87wtq74ops.fsf@Astalo.kon.iki.fi>
References: <1gvl3nc.1btw8bq15u28exN%thedl0-usenet1@yahoo.com>
 <1114785595.237226.56270@g14g2000cwa.googlegroups.com>
 <87vf63z31d.fsf@Astalo.kon.iki.fi>
 <42788af6$0$297$4d4ebb8e@businessnews.de.uu.net>
 <1115628192.099176.167260@f14g2000cwb.googlegroups.com>
NNTP-Posting-Host: news.news.demon.net
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: quoted-printable
X-Trace: news.demon.co.uk 1115775323 3830 158.152.254.254 (11 May 2005 01:35:23 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Wed, 11 May 2005 01:35:23 +0000 (UTC)
X-OPOY-MailScanner-SpamCheck: not spam, SpamAssassin (score=-4.619,	required 5,
 autolearn=not spam, AWL 0.28, BAYES_00 -4.90)
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux)
X-OPOY-MailScanner-Information: Please contact the OPOY for more information
X-Virus-Scanned: by amavisd-new at cs.mu.OZ.AU
X-Cancel-Lock: sha1:zHC5VcKFeavkkZKv7+iJmd91a6U=
X-Path: comp-std-cpp-robomod!not-for-mail
X-Received: (from fjh@localhost)
	by mulga.cs.mu.OZ.AU (8.12.10+Sun/8.12.9/Submit) id j4B1ZGAs028278;
	Wed, 11 May 2005 11:35:16 +1000 (EST)
X-OPOY-MailScanner: Not virus scanned: please contact OPOY for details
X-NNTP-posting-date: Tue, 10 May 2005 05:56:03 +0000 (UTC)
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-MailScanner-From: news@plaza.suomi.net
X-MIME-Autoconverted: from 8bit to quoted-printable by mulga.cs.mu.OZ.AU id j4B1ZJEH028329
X-Accept-Language: fi;q=1.0, en;q=0.9, sv;q=0.5, de;q=0.1
X-Keywords: iterator_category
X-Newsgroups: comp.std.c++
Xref: g2news1.google.com comp.std.c++:4689

"msalters" <Michiel.Salters@logicacmg.com> writes:

> "Daniel Kr=FCgler ne Spangenberg wrote:
>> Why should your proposed char iterators be bidirectional?
>
> I asssume because it's slightly easier to parse a number in reverse;

Indeed; I thought it would be more efficient, especially as
(unlike with input iterators) the dynamic memory for the integer
can be allocated immediately at the beginning, instead of growing
it little by little.

On the other hand, the constructor could allow all input
iterators but then choose the best applicable algorithm at
compile time based on std::iterator_traits<T>::iterator_category.
I suppose that would be better.

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



