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:06:42 UTC

[Qpid Wiki] Trivial Update of "CppTips/BewareOfStringPromotion" 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/BewareOfStringPromotion

------------------------------------------------------------------------------
+ MIGRATED to http://cwiki.apache.org/confluence/display/qpid/BewareOfStringPromotion
+ 
  `std::string` is a useful tool for simplifying memory management of strings and avoiding unnecessary copies by reference counting. However there is one common gotcha where it ''causes'' unnecessary copies. Consider: 
  
  {{{