Movatterモバイル変換


[0]ホーム

URL:



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

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

Section: 23.3.14[vector.bool]Status:C++11Submitter: Bo PerssonOpened: 2009-12-09Last modified: 2016-01-28

Priority:Not Prioritized

View all otherissues in [vector.bool].

View all issues withC++11 status.

Discussion:

The specialization forvector<bool> (23.3.14[vector.bool])has a constructor

vector(initializer_list<bool>);

which differs from the base template's constructor (and other containers) inthat it has noallocator 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 23.3.14[vector.bool] to

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

[8]ページ先頭

©2009-2026 Movatter.jp