Hacker News new | ask | show | jobs
by sseagull 1465 days ago
But the temporary copy only happens going from const char * to std::string, so the C code would have to be calling C++ code.

std::string to const char doesn’t (usually?) require copying.