What\'s wrong with this line of code?
bar foo(vector ftw);
It produces
error C2061: syntax error: identifier \'vector\'
Do you have:
#include
and
using namespace std;
in your code?
defines the std::vector
class, so you need to include it some where in your file.
since you're using vector
, you need to instruct the compiler that you're going to import the whole std
namespace (arguably this is not something you want to do), via using namespace std;
Otherwise vector should be defined as std::vector