[Boost-bugs] [Boost C++ Libraries] #9299: Feature Requests: circular_buffer::emplace(...)

Subject: [Boost-bugs] [Boost C++ Libraries] #9299: Feature Requests: circular_buffer::emplace(...)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-10-24 21:13:43


#9299: Feature Requests: circular_buffer::emplace(...)
-------------------------------------------+-----------------------------
 Reporter: anonymous | Owner: jano_gaspar
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: circular_buffer
  Version: Boost Development Trunk | Severity: Not Applicable
 Keywords: circular_buffer emplace c++11 |
-------------------------------------------+-----------------------------
 I think a great addition to circular_buffer would be to support
 emplace(...)/emplace_back()/emplace_front() to make it more C++11
 compliant.

 At the first quick glance I took at the source, implementation seems
 straight-forward, more or less c&p the code from
 insert/push_back/push_front and construct the items in-place instead. The
 tricky part however would be to stay compliant with older C++ versions, if
 that is a desired feature (and it seems to be considering that e.g.
 Boost.Move can be used instead of the C++11 move semantics). I do not have
 an idea how to do this as I'm not an experienced boost developer (or
 actually even user for that matter).

 If older C++-compliance is not needed and my assumption of simply "c&ping
 insert/push_back/push_front" is confirmed by a boost developer, I could
 probably provide a patch a few weeks from now (my time is a bit limited at
 the moment) if required. If the compliance is needed however, I would
 prefer that a more experienced developer would implement it.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9299>
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:14 UTC