diff options
author | Ben Woosley <ben.woosley@gmail.com> | 2018-08-23 02:57:39 -0700 |
---|---|---|
committer | Ben Woosley <ben.woosley@gmail.com> | 2018-08-23 02:57:39 -0700 |
commit | 497e90c02b96e8739e8faf3d43e41ba1ff0627b7 (patch) | |
tree | f342c6257ba3817f708acc22f16244101b9faeae /src/prevector.h | |
parent | 271b379e636afa419c5208cb462c07090490266c (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.h | 2 |
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); |