Hacker News new | ask | show | jobs
by beached_whale 82 days ago
std::string since C++ 11 guarantees the buffer is zero terminated. The reasoning being thread safety of const members. https://eel.is/c++draft/basic.string#general-3