This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/15910] can't compile self defined void distance(std::vector<T>, std::vector<T>)
- From: "gdr at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Aug 2004 11:29:12 -0000
- Subject: [Bug libstdc++/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 gdr at gcc dot gnu dot org 2004-08-03 11:29 -------
(In reply to comment #9)
> OK. So one of these:
>
> - Either SFINAE does not work as expected while instantiating std::distance
> declaration
> - Or v3 should be fixed to rely on SFINAE to reject invalid uses (with, eg,
> enable_if)
On what grounds? Just because you want it?
>
> It pretty much depends on how distance is declared, but I tend to think that
> it's the latter. I'm tentatively moving the bug to be a v3 bug to catch v3
> specialist attention. I don't have a compiler tree handy to check myself right
> now.
>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15910