logoalt Hacker News

beached_whaletoday at 4:07 AM0 repliesview on HN

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