aboutsummaryrefslogtreecommitdiff
path: root/src/prevector.h
diff options
context:
space:
mode:
authorBen Woosley <ben.woosley@gmail.com>2018-08-23 02:57:39 -0700
committerBen Woosley <ben.woosley@gmail.com>2018-08-23 02:57:39 -0700
commit497e90c02b96e8739e8faf3d43e41ba1ff0627b7 (patch)
treef342c6257ba3817f708acc22f16244101b9faeae /src/prevector.h
parent271b379e636afa419c5208cb462c07090490266c (diff)
Remove default argument to prevector constructor to remove ambiguity
The call with this default argument is redundant with prevector(size_type).
Diffstat (limited to 'src/prevector.h')
-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);