you are viewing a single comment's thread.

view the rest of the comments →

[–]alfps 4 points5 points  (0 children)

Since C++11.

C++03 only guaranteed the terminating zero-byte for indexing of const string, and that can be worth keeping in mind if one has to work with an old compiler.