This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of C++11 status.

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

Section: 22.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.


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


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 22.3.12 [vector.bool] to

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