Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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();
 
PREVIOUS NEXT
Tagged: #pointer #address #string
ADD COMMENT
Topic
Name
8+5 =