Merge #14030: Remove ambiguity in construction of prevector
497e90c02b
Remove default argument to prevector constructor to remove ambiguity (Ben Woosley)
Pull request description:
The call with this default argument is redundant with `prevector(size_type)` on line 251.
Tree-SHA512: 4d22e6f4cd56e4b700596d7f5afc945ec6684636a94690fa16a1bbb34e4f53b6340f53a6c314fea213359426474125228ba7193388789f8a13308506358e92db
This commit is contained in:
commit
4a1a2148f6
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