[patch] Clarify doxygen comments w.r.t nulls in std::string

Jonathan Wakely jwakely@redhat.com
Fri Apr 1 12:30:00 GMT 2016


A stackoverflow poster was confused by the comments on
basic_string::length() which talk about null-temrination, as it isn't
obvious that embedded nulls are not terminators.

I think this makes it clearer, but would appreciate other opinions.

(The @{ and @} commands tell doxygen to use the same comment for both
functions, to avoid duplicating the text more than already necessary
for the two string implementations.)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 2915 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20160401/bb46511f/attachment.bin>


More information about the Libstdc++ mailing list