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 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


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