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++/15910] can't compile self defined void distance(std::vector<T>, std::vector<T>)


------- Additional Comments From gdr at gcc dot gnu dot org  2004-08-03 11:27 -------
(In reply to comment #7)
> 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 

Why should it fall under SFINAE?

> for the call. Then we would end up with an overload set containing 
> only ::distance().

If you want ::disatnce, say ::distance.

-- Gaby


-- 


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


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