This is weird...
My compiler just gave me the following message:
in regards to this code:error: cannot convert 'std::string' to 'std::string*' in assignment
The error is at the line where I create a string pointer and initialize it to point at the 'enumStrings' member string of the class "CenumOperations" in the same line.Code:string* CenumOperations::getEnum() { string* pEnumStrings = enumStrings; //get a pointer to the string member 'enumStrings' return pEnumStrings; //return the pointer }
And if, I change it to this instead:
there's no change. Still the same error.Code:string* CenumOperations::getEnum() { string* pEnumStrings = NULL; pEnumStrings = enumStrings; //get a pointer to the string member 'enumStrings' return pEnumStrings; //return the pointer }