• Advertisement
Sign in to follow this  

How to make a std::vector equal another one?

This topic is 4840 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement