cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Why this doesn´t work!!!
Why this doesn´t work!!!
Nov 12, 2009 at 12:53am UTC
DJDANG
(1)
Hi everyone,
could anyone tell my why is tht this codeline does not work??
given Arco as template<typename Arco>
map< vector<
int
>, Arco >::iterator iter;
thanks in advance,
Daniel González
Nov 12, 2009 at 1:26am UTC
helios
(17607)
std::vector doesn't have an overloaded operator<() and you're not providing a replacement functor.
Nov 12, 2009 at 2:02am UTC
kempofighter
(1183)
It doesn't make much sense to me. Why would you want an entire array as the key? How do you determine if one array is less than another? Is the typedef backwards?
Topic archived. No new replies allowed.