KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have: unsigned char *foo(); std::string str; str.append(static_cast<const char*>(foo())); The error: invalid static_cast from type ‘unsigned char*’ to type ‘const char*’ What's the correct way to cast here in C++ style?
Tags (comma-separated)
Save Edits
Cancel