I am attempting to assign a pointer to a value like so
string name;
XMLSerial * ptr;
if(name == "Armor")
{
ptr = &name;
}
Name is initialized earlier. XMLSerial is a class that I have written. I am trying to deserialize some XML into objects. If the name is one of the classes or objects that I have defined, I want the XMLSerial object pointer to create space for the object.
The error i'm getting is cannot convert std::string* {aka std::basic_string<char>*} to XMLSerial* in assignment.
stringwith a pointer to a fundamentally different type?T1*to a pointerT2*.