I get a compile error with this:
Code://Throws: "expected constructor, destructor or type conversion before '<' token" std::vector<int> someMethod() { ... }
This is a discussion on Why can't I declare a method that returns a vector? within the C++ Programming forums, part of the General Programming Boards category; I get a compile error with this: Code: //Throws: "expected constructor, destructor or type conversion before '<' token" std::vector<int> someMethod() ...
I get a compile error with this:
Code://Throws: "expected constructor, destructor or type conversion before '<' token" std::vector<int> someMethod() { ... }
Never mind. I figured it out.![]()