This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/26020] std::advance() isn't stable for floating point numbers
- From: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jan 2006 01:07:44 -0000
- Subject: [Bug libstdc++/26020] std::advance() isn't stable for floating point numbers
- References: <bug-26020-8082@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from gdr at integrable-solutions dot net 2006-01-30 01:07 -------
Subject: Re: std::advance() isn't stable for floating point numbers
"pcarlini at suse dot de" <gcc-bugzilla@gcc.gnu.org> writes:
| Hi again. On second tought, I don't think we have an issue here. Maybe of QoI
| only, at most. The reason is that, according to 24.1/9, Distance is a
| difference type in the "following sections". A bit vague, but that seem to
| imply to also the template argument Distance in 24.3.4 is a difference
type...
That matches my interpretation --- hence Distance must behave "like"
an integral type -- but still, the question is exactly what kind of
relation does it have with say
std::iterator<FowardIterator>::difference_type.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26020