Remove default argument to prevector constructor to remove ambiguity

The call with this default argument is redundant with prevector(size_type).
This commit is contained in:
Ben Woosley 2018-08-23 02:57:39 -07:00
parent 271b379e63
commit 497e90c02b
No known key found for this signature in database
GPG key ID: 4D8CA4BA18040906

View file

@ -252,7 +252,7 @@ public:
resize(n);
}
explicit prevector(size_type n, const T& val = T()) : _size(0) {
explicit prevector(size_type n, const T& val) : _size(0) {
change_capacity(n);
_size += n;
fill(item_ptr(0), n, val);