Skip to content

Commit

Permalink
Remove default argument to prevector constructor to remove ambiguity
Browse files Browse the repository at this point in the history
The call with this default argument is redundant with prevector(size_type).
  • Loading branch information
Empact committed Aug 23, 2018
1 parent 271b379 commit 497e90c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prevector.h
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ class prevector {
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);
Expand Down

0 comments on commit 497e90c

Please sign in to comment.