error: expected constructor, destructor, or type conversion before ‘<‘ token
Relevant section of C++ code:
InputParser::vector<bar*> getFooBar(){
return bars;
}
We have defined vector bars; as a private variable in the header file.
Can someone please explain how to resolve this error?
Your question is not too clear. If this is supposed to be a
std::vector, that’s not the type you are using. AssuminggetFooBaris a member ofInputParser, the syntax is: