Boost C++ Libraries: Ticket #3241: Patch for convenience.hpp compatibility with STLport https://svn.boost.org/trac10/ticket/3241 <p> The STLport has optimization for std::string so that string concatenation via operator+ does not yield an std::string object but rather a template expression temporary object of an internal type. This optimization breaks compilation of the convenience.hpp header on MSVC 9, at least. In the change_extension function the concatenation result is passed to operator/, which causes the following error: </p> <pre class="wiki">.\boost/filesystem/convenience.hpp(84) : error C2679: binary '/' : no operator found which takes a right-hand operand of type 'stlp_std::priv::__bstr_sum&lt;_CharT,_Traits,_Alloc,_Left,_Right,_StorageDirection&gt;' (or there is no acceptable conversion) with [ _CharT=char, _Traits=stlp_std::char_traits&lt;char&gt;, _Alloc=stlp_std::allocator&lt;char&gt;, _Left=stlp_std::priv::__bstr_wrapper&lt;char,stlp_std::char_traits&lt;char&gt;,stlp_std::allocator&lt;char&gt;&gt;, _Right=stlp_std::priv::__bstr_sum&lt;char,stlp_std::char_traits&lt;char&gt;,stlp_std::allocator&lt;char&gt;,stlp_std::priv::__bstr_wrapper&lt;char,stlp_std::char_traits&lt;char&gt;,stlp_std::allocator&lt;char&gt;&gt;,stlp_std::priv::__sum_storage_elem&lt;char,stlp_std::char_traits&lt;char&gt;,stlp_std::allocator&lt;char&gt;&gt;,stlp_std::priv::__on_right&gt;, _StorageDirection=stlp_std::priv::__on_right ] </pre><p> The attached patch resolves the problem. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3241 Trac 1.4.3 Andrey Semashev Fri, 03 Jul 2009 15:51:25 GMT attachment set https://svn.boost.org/trac10/ticket/3241 https://svn.boost.org/trac10/ticket/3241 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">convenience.hpp.patch</span> </li> </ul> Ticket Beman Dawes Sat, 12 Jun 2010 20:44:24 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3241#comment:1 https://svn.boost.org/trac10/ticket/3241#comment:1 <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 <a class="changeset" href="https://svn.boost.org/trac10/changeset/62876" title="Fix #3241">[62876]</a>) Fix <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3241" title="#3241: Bugs: Patch for convenience.hpp compatibility with STLport (closed: fixed)">#3241</a> </p> Ticket