This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/26020] std::advance() isn't stable for floating point numbers



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]