remove const char* in C++ code, which is causing confusion and potential bugs when used with std::bind().