Re: [Boost-bugs] [Boost C++ Libraries] #7888: circular_buffer should support move semantics

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7888: circular_buffer should support move semantics
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-05-23 18:41:44


#7888: circular_buffer should support move semantics
-------------------------------+------------------------------------------
  Reporter: holmes@… | Owner: apolukhin
      Type: Feature Requests | Status: reopened
 Milestone: To Be Determined | Component: circular_buffer
   Version: Boost 1.52.0 | Severity: Problem
Resolution: | Keywords: circular_buffer move emplace
-------------------------------+------------------------------------------

Comment (by anonymous):

 Ah-ha! I did some further testing.\
 Though all the messages point to the line declaring the circular_buffer,
 the warnings only appear when the !TestSetupContainer struct's ctor
 contains this line:

 {{{
 output_buffer_.resize(10);
 }}}

 So it would appear that the call to "resize" actually triggers the
 warnings.\\
 I commented out everything in that test file except that struct
 declaration (and necessary #includes), just to be sure.

 I also changed the declaration of "output_buffer_" to these types:\\
 ||="output_buffer_" type||result=||
 ||boost::circular_buffer<int>||NO warning||
 ||boost::circular_buffer<boost::shared_ptr<int>>||SAME warning||
 ||boost::circular_buffer<std::shared_ptr<int>>||SAME warning||

 If I think of anything else, I'll post more here.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7888#comment:27>
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:16 UTC