[Bug libstdc++/15910] can't compile self defined void distance(std::vector<T>, std::vector<T>)

gdr at integrable-solutions dot net gcc-bugzilla@gcc.gnu.org
Mon Aug 8 04:56:00 GMT 2005


------- Additional Comments From gdr at integrable-solutions dot net  2005-08-08 04:56 -------
Subject: Re:  can't compile self defined void distance(std::vector<T>, std::vector<T>)

"adah at netstd dot com" <gcc-bugzilla@gcc.gnu.org> writes:

[...]

| template<>
| struct iterator_traits<vector<int> >

Invalid.

[...]

| The point is: adding the seemingly unrelated code will make the user
| distance be chosen.

yes, we understood that.  The point is why is that a bug in the
compiler as opposed to a "bug" in the standard?  That is what you have
failed to explain so far.  The mere fact that you did not like the
result does not count as a bug in the compiler.

-- Gaby


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15910



More information about the Gcc-bugs mailing list