Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

N3000 Defect - vector<bool> initializer_list constructor missing an allocator argument

1 view
Skip to first unread message

Bo Persson

unread,
Dec 9, 2009, 6:13:14 PM12/9/09
to
The specialization for vector<bool> (23.3.7 [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.


Proposed resolution:

Change the signature to

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

--
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std...@netlab.cs.rpi.edu]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]

0 new messages