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

Started by
0 comments, last by Washu 19 years, 5 months ago
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
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.

In time the project grows, the ignorance of its devs it shows, with many a convoluted function, it plunges into deep compunction, the price of failure is high, Washu's mirth is nigh.

This topic is closed to new replies.

Advertisement