How to make a std::vector equal another one?
Hi, i've got a function that returns std::vector
eg:
std::vector<int> getList();
...
std::vector<int> list = getList();
But when i call that it just hangs. Is there any functions to do this?
thanks
debug getList. Chances are you have a bug in there. vector has a defined copy constructor (which is what will be called there), so...that just leaves a bug in your code.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement