Boost C++ Libraries: Ticket #12453: libs/locale/src/shared/message.cpp: 4 * inefficient code ? https://svn.boost.org/trac10/ticket/12453 <p> libs/locale/src/shared/message.cpp:691]: (performance) Passing the result of c_str() to a function that takes std::string as argument no. 1 is slow and redundant. </p> <p> libs/locale/src/shared/message.cpp:691]: (performance) Passing the result of c_str() to a function that takes std::string as argument no. 2 is slow and redundant. </p> <p> Source code is </p> <blockquote> <p> if(compare_encodings(mo_encoding.c_str(),locale_encoding_.c_str())!=0) </p> </blockquote> <p> Also </p> <p> libs/locale/src/shared/message.cpp:693]: (performance) Passing the result of c_str() to a function that takes std::string as argument no. 1 is slow and redundant. libs/locale/src/shared/message.cpp:693]: (performance) Passing the result of c_str() to a function that takes std::string as argument no. 1 is slow and redundant. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12453 Trac 1.4.3 John Maddock Thu, 20 Oct 2016 18:07:10 GMT component changed; owner set https://svn.boost.org/trac10/ticket/12453#comment:1 https://svn.boost.org/trac10/ticket/12453#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Artyom Beilis</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">locale</span> </li> </ul> Ticket Artyom Beilis Thu, 13 Jul 2017 14:25:55 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/12453#comment:2 https://svn.boost.org/trac10/ticket/12453#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> in develop </p> Ticket