[Bug libstdc++/26020] std::advance() isn't stable for floating point numbers
pcarlini at suse dot de
gcc-bugzilla@gcc.gnu.org
Mon Jan 30 00:45:00 GMT 2006
------- Comment #5 from pcarlini at suse dot de 2006-01-30 00:45 -------
(In reply to comment #4)
> | AFAICS, the standard is silent about this issue. I think the suggested
> | change is correct.
>
> I believe Martin Sebor filled a related PR, whereby we should have
> converted n to *some* integral type before proceeding...
I was also under that impression. That issue, however, was about Size in algos,
which, at least, is required to be convertible to an integral type. I don't
think we even have such *minimal* requirement here... What do you suggest?
Should the LWG discuss such kind of requirements for Distance too? In the
meanwhile suspend? I have no strong opinions...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26020
More information about the Gcc-bugs
mailing list