I have a function that takes a const string & value as an argument. I am trying to get the value of this string so that I can manipulate it in this function. Therefore, I want to store the value in a string returnVal , but this does not work:
string returnVal = *value
source share