Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11993: Add a default constructor to intrusive unordered_set and unordered_multiset
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-03-01 21:18:12
#11993: Add a default constructor to intrusive unordered_set and unordered_multiset
-------------------------------+------------------------
Reporter: anonymous | Owner: igaztanaga
Type: Feature Requests | Status: closed
Milestone: To Be Determined | Component: intrusive
Version: Boost 1.60.0 | Severity: Problem
Resolution: wontfix | Keywords:
-------------------------------+------------------------
Changes (by igaztanaga):
* status: new => closed
* resolution: => wontfix
Comment:
Allowing a intrusive container without buckets, apart from pessimizing
functions that must check for this special condition, makes all other
insertion functions invalid (the intrusive container can't allocate memory
so all functions should have a precondition saying that a bucket must have
been introduced). This precondition-free behaviour was a design decision.
You can always use a single bucket for the "nearly default constructed"
type, in case you want to minimize memory waste (a single bucket requires
just the storage of a pointer).
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11993#comment:1> 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:19 UTC