Re: [Boost-bugs] [Boost C++ Libraries] #11684: boost::string_ref lack of move constructor prevents efficient use in some stl containers

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11684: boost::string_ref lack of move constructor prevents efficient use in some stl containers
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-07-27 17:05:22


#11684: boost::string_ref lack of move constructor prevents efficient use in some
stl containers
-------------------------------+---------------------------
  Reporter: banks@… | Owner: no-maintainer
      Type: Feature Requests | Status: new
 Milestone: To Be Determined | Component: utility
   Version: Boost 1.59.0 | Severity: Optimization
Resolution: | Keywords:
-------------------------------+---------------------------

Comment (by marshall):

 I'm confused.
 I tried this:


 {{{
 struct S { std::string_view sv; };

 int main () {
     static_assert(
 std::is_trivially_move_constructible<std::string_view>::value, "" );
     static_assert( std::is_trivially_move_constructible<S>::value, "" );
     static_assert( std::is_trivially_constructible<std::string_view,
 std::string_view&&>::value, "" );
     }

 }}}

 and it compiled w/o error. (clang, libc++)

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11684#comment:2>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC