You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by Apache Wiki <wi...@apache.org> on 2006/10/19 12:01:16 UTC
[Qpid Wiki] Trivial Update of "CppTips/BewareStdStringLiterals" by
MarnieMcCormack
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Qpid Wiki" for change notification.
The following page has been changed by MarnieMcCormack:
http://wiki.apache.org/qpid/CppTips/BewareStdStringLiterals
------------------------------------------------------------------------------
+ MIGRATED to http://cwiki.apache.org/confluence/display/qpid/BewareStdStringLiterals
+
The short story: in C++ code using `std::string` never use string literals except to initialize static-scoped `std::string` constants.
(And by the way: CppTips/NeverUseStaticLocalVariables)