std::vector's push_back() causing a strange compile-time error message
My snippet of code:
void
RMWavefrontFileImporter::loadVerticeIntoVector(const
std::vector<std:string> lineElements,
std::vector<const
RM3DVertice>* vertices)
{
assert(vertices);
std::unique_ptr<const RM3DVertice> verticeRef =
verticeWithElements(lineElements);
const RM3DVertice* vertice = verticeRef.get();
assert(vertice);
vertices->push_back(*vertice);
}
The error message I'm getting:
"Cannot initialize a parameter of type 'void *' with an lvalue of type
'const RM3DVertice *'"
I'm failing to see the problem. Is there anything obvious I'm missing?
No comments:
Post a Comment