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: "adah at netstd dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Aug 2005 04:32:15 -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 adah at netstd dot com 2005-08-10 04:31 -------
The error message I am imagining (not sure of its feasibility):
.../stl_iterator_base_types.h: In instantiation of
`std::iterator_traits<std::vector<int, std::allocator<int> > >':
.../stl_iterator_funcs.h: In instantiation of (return type of?) `std::distance
(std::vector<int>, std::vector<int>' (as found by argument-dependent lookup:
use a scope modifier like `::' if this is not what you want):
test1.cpp:32: instantiated from here
...
Yongwei
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15910