I’m having trouble assigning an element of a pointer vector of object pointers to an object pointer. I’m on a Linux and using Eclipse IDE. If you want to take a look at my problem:
void Parse::parseDatalogProgram(vector<Token*>* tokens)
{
Token* currentToken = tokens[0];
...
}
I’m getting a syntax error saying “cannot convert ‘std::vector’ to ‘Token*’ in initialization”, although above doesn’t seem to look that way How do I properly fix this?
tokensis a pointer, not avectoritself. You can door