This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15910] can't compile self defined void distance(std::vector<T>, std::vector<T>)
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jun 2004 16:08:32 -0000
- Subject: [Bug c++/15910] can't compile self defined void distance(std::vector<T>, std::vector<T>)
- References: <20040610143911.15910.king.benjamin@mh-hannover.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From giovannibajo at libero dot it 2004-06-10 16:08 -------
If instantiating the *declaration* of a template std::distance() function
(found through argument-dependent lookup) causes an error, this should fall
under SFINAE and simply rejects the template function as a possible overload
for the call. Then we would end up with an overload set containing
only ::distance().
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15910