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:
parent
271b379e63
commit
497e90c02b
1 changed files with 1 additions and 1 deletions
|
@ -252,7 +252,7 @@ public:
|
||||||
resize(n);
|
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);
|
change_capacity(n);
|
||||||
_size += n;
|
_size += n;
|
||||||
fill(item_ptr(0), n, val);
|
fill(item_ptr(0), n, val);
|
||||||
|
|
Loading…
Reference in a new issue