After perusing the web and messing around myself, I can\'t seem to convert a void*\'s target (which is a string) to a std::string. I\'ve tried using sprintf(buffer, \"
sprintf(buffer, \"
If the void is a const char*, then you can just call the std::string constructor with it, i.e.
const char* cakes = something; std::string lols = std::string(cakes);