[Bug libstdc++/15910] can't compile self defined void distance(std::vector<T>, std::vector<T>)
adah at netstd dot com
gcc-bugzilla@gcc.gnu.org
Wed Aug 10 04:32:00 GMT 2005
------- 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
More information about the Gcc-bugs
mailing list