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: 24.3.12 [vector.bool] Status: C++11 Submitter: Bo Persson Opened: 2009-12-09 Last modified: 2016-01-28

Priority: Not Prioritized

View other active issues in [vector.bool].

View all other issues in [vector.bool].

View all issues with C++11 status.

Discussion:

The specialization for vector<bool> (24.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 24.3.12 [vector.bool] to

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