Sign in to follow this  
johnnyBravo

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

Recommended Posts

johnnyBravo    100
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
Washu    7829
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this