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: "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:23: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 giovannibajo at libero dot it 2004-06-10 16:23 -------
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)
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.
--
What |Removed |Added
----------------------------------------------------------------------------
Component|c++ |libstdc++
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15910