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:
Wladimir J. van der Laan 2018-08-27 12:05:10 +02:00
commit 4a1a2148f6
No known key found for this signature in database
GPG key ID: 1E4AED62986CD25D

View file

@ -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);