Boost C++ Libraries: Ticket #11333: boost::basic_string_ref should interop with boost::container::basic_string https://svn.boost.org/trac10/ticket/11333 <p> There is a nice implicit conversion from std::basic_string to boost::basic_string_ref. It would be nice if the same thing worked for boost::container::basic_string. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11333 Trac 1.4.3 Tavian Barnes <tavianator@…> Wed, 22 Jun 2016 21:30:44 GMT <link>https://svn.boost.org/trac10/ticket/11333#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11333#comment:1</guid> <description> <p> Would be nice for the new boost::basic_string_view as well. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Andrey Semashev</dc:creator> <pubDate>Thu, 05 Jan 2017 02:40:59 GMT</pubDate> <title>owner changed; cc set https://svn.boost.org/trac10/ticket/11333#comment:2 https://svn.boost.org/trac10/ticket/11333#comment:2 <ul> <li><strong>cc</strong> <span class="trac-author">Andrey.Semashev@…</span> added </li> <li><strong>owner</strong> changed from <span class="trac-author">No-Maintainer</span> to <span class="trac-author">Marshall Clow</span> </li> </ul> Ticket Andrey Semashev Thu, 05 Jan 2017 02:41:43 GMT owner changed https://svn.boost.org/trac10/ticket/11333#comment:3 https://svn.boost.org/trac10/ticket/11333#comment:3 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Marshall Clow</span> to <span class="trac-author">Ion Gaztañaga</span> </li> </ul> <p> The C++17 solution to this is to add a conversion operator <code>std::basic_string::operator std::basic_string_view()</code>. I think, it would make sense to follow the same approach in Boost.Container. I'm adding Ion here by reassigning the ticket, let's see what he thinks. </p> Ticket Marshall Clow Mon, 13 Feb 2017 19:47:23 GMT <link>https://svn.boost.org/trac10/ticket/11333#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11333#comment:4</guid> <description> <p> Proposed <a class="ext-link" href="https://github.com/boostorg/container/pull/44"><span class="icon">​</span>https://github.com/boostorg/container/pull/44</a> for a start. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Ion Gaztañaga</dc:creator> <pubDate>Tue, 21 Feb 2017 13:30:58 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/11333#comment:5 https://svn.boost.org/trac10/ticket/11333#comment:5 <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> Interoperability to string_view added in commit: </p> <p> <a class="ext-link" href="https://github.com/boostorg/container/commit/865c69bab72e760f97c4bd073bf59bdeb5623d9d"><span class="icon">​</span>https://github.com/boostorg/container/commit/865c69bab72e760f97c4bd073bf59bdeb5623d9d</a> </p> <p> Thanks for the report and thanks Marshall for the initial proposal. </p> Ticket