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: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jan 2006 01:09:23 -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 #9 from pcarlini at suse dot de 2006-01-30 01:09 -------
(In reply to comment #7)
> reading the standard specification let me under the impression that
> Distance is supposed to "related" to difference_type. For example
> the distance between the p before and after calling distance(p, n) is
> supposed to be n. So I would suggest conversion to the
> difference_type of the iterator as a momentary resolution.
Excellent idea.
> I'm not sure the resolution would introduce an ABI breakage, so I
> would say let's do both; but I'm open to other alternatives.
Agreed, let's implement your suggestion and send a note to the reflector (and
Martin, already working on the Size issue). Thanks!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26020