Opened 9 years ago

Closed 6 years ago

#9689 closed Feature Requests (fixed)

Add piecewise_construct to boost::container

Reported by: anonymous Owned by: Ion Gaztañaga
Milestone: To Be Determined Component: container
Version: Boost 1.55.0 Severity: Problem
Keywords: c++11, container Cc:

Description

C++11 introduces std::piecewise_construct, which is needed in some scenarios; for instance, to emplace a default-initialized object into a container.

boost::unordered already allows it (http://www.boost.org/doc/libs/1_55_0/doc/html/unordered/compliance.html), but boost::container doesn't.

This question on StackOverflow illustrates this further: http://stackoverflow.com/questions/21438244/

Change History (1)

comment:1 by Ion Gaztañaga, 6 years ago

Resolution: fixed
Status: newclosed

Reviewing old bugs. piecewise_construct support was added in commit:

https://github.com/boostorg/container/commit/79a75f470e75f35f5f2a91e10fcc67d03b0a2160

Which should be available in Boost 1.62. Thanks for the report and your patience.

Note: See TracTickets for help on using tickets.