Re: [Boost-bugs] [Boost C++ Libraries] #13420: small_vector - invalid move constructor/move assignment for size < N

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #13420: small_vector - invalid move constructor/move assignment for size < N
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-01-27 22:42:04


#13420: small_vector - invalid move constructor/move assignment for size < N
-------------------------------+--------------------------------
  Reporter: Antervis | Owner: Ion Gaztañaga
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: container
   Version: Boost 1.66.0 | Severity: Problem
Resolution: | Keywords: small_vector, move
-------------------------------+--------------------------------

Comment (by Antervis):

 Replying to [comment:2 Ion Gaztañaga]:
> There is not requirement that a move constructor or assignment must
 empty the source. Source must be in a consistent but unspecified state.

 even though current behavior is standard-conforming, it is certainly
 inconsistent both with standard containers (which are empty after being
 moved out) and with itself (moved out state depends on initial state). I
 personally don't see a reason for this behavior to be an intended design
 choice and I suggest it to be changed

-- 
Ticket URL: <https://svn.boost.org/trac10/ticket/13420#comment:3>
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 : 2018-01-27 22:50:18 UTC