[Bug libstdc++/15910] can't compile self defined void distance(std::vector<T>, std::vector<T>)
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Tue Aug 9 14:12:00 GMT 2005
------- Additional Comments From bangerth at dealii dot org 2005-08-09 14:11 -------
I think we should all recuse ourselves from this discussion, since we just
keep iterating our same old positions:
Yongwei believes that this is a defect in the standard and that gcc should
not follow the standard in this respect.
Gaby and I believe that gcc should follow the standard, and probably both
believe that the standard does not have a defect in this respect. We believe
that changing the standard would require a massive change in the language,
since it would either a) require the introduction of concepts (so that
std::distance can only be called with arguments that match the concept
of an iterator; same for all other similar functions), or b) abandoning
argument dependent (Koenig) name lookup. Neither sounds like an appealing
idea. We believe that users can work around this perceived problem by
simply calling
::distance (arg1, arg2)
to get to their own implementation, not the one in std::
Since we can't seem to find an agreement, let's just leave it at that.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15910
More information about the Gcc-bugs
mailing list