Basicly I have volatile const char* and want to create a string.
The volatile keyword here is in all likelyhood irrelevant(a misunderstanding from a previous dev), but cannot easily get rid of it (coming from other library).
cannot convert argument N from 'volatile const char *' to 'std::string
I could just use a const_cast to cast the volatile away (and making the compiler disregard volatile/const). Im interested in a solution not using const_cast.
Do other methods exist, eg. could using a stringstream perhaps be a solution ?