aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2018-08-27 12:05:10 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2018-08-27 12:23:48 +0200
commit4a1a2148f66ce059810975f6ab2735aee0f84463 (patch)
treeee03aaa303bfcd6913fdc1e65718645c7ea7878d /src
parentcb98effc5cf1d6a65a8b4a77872aae1df1ec5fe4 (diff)
parent497e90c02b96e8739e8faf3d43e41ba1ff0627b7 (diff)
Merge #14030: Remove ambiguity in construction of prevector
497e90c02b96e8739e8faf3d43e41ba1ff0627b7 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
Diffstat (limited to 'src')
-rw-r--r--src/prevector.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/prevector.h b/src/prevector.h
index 033952c959..7a13b98214 100644
--- a/src/prevector.h
+++ b/src/prevector.h
@@ -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);