Answers for "pointer address to string"

C++
0

pointer address to string

#include <sstream> //for std::stringstream 
#include <string>  //for std::string

const void * address = static_cast<const void*>(this);
std::stringstream ss;
ss << address;  
std::string name = ss.str();
Posted by: Guest on July-07-2020

Code answers related to "pointer address to string"

Browse Popular Code Answers by Language