I have:
unsigned char *foo(); std::string str; str.append(static_cast(foo()));
The error: invalid static_cast from
invalid static_cast from
Hope it help. :)
const unsigned attribName = getname(); const unsigned attribVal = getvalue(); const char *attrName=NULL, *attrVal=NULL; attrName = (const char*) attribName; attrVal = (const char*) attribVal;