HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by breuwi | Hacker News Reader
Full thread
breuwi
·
[Deleted, misread]
View on HN
Matheus28
·
Since C++11, data() is also required to be null terminated. Per your own source and cppreference.
breuwi
·
LOL, I need to learn to click on the more modern tabs. Will delete comment.
beached_whale
·
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
Reply on news.ycombinator.com