1284. vector<bool> initializer_list constructor missing an allocator argument

Section: 26.3.12 [vector.bool] Status: C++11 Submitter: Bo Persson Opened: 2009-12-09 Last modified: 2016-02-10

Priority: Not Prioritized

View all other issues in [vector.bool].

View all issues with C++11 status.

Discussion:

The specialization for vector<bool> (26.3.12 [vector.bool]) has a constructor

vector(initializer_list<bool>);

which differs from the base template's constructor (and other containers) in that it has no allocator parameter.

[ 2009-12-16 Moved to Tentatively Ready after 5 positive votes on c++std-lib. ]

Proposed resolution:

Change the signature in the synopsis of 26.3.12 [vector.bool] to

vector(initializer_list<bool>, const Allocator& = Allocator());