From ba297917739b43e721bb790ffd24c22acfa52489 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Sun, 21 Oct 2018 19:09:53 +0200 Subject: [PATCH] c++: minor simplification * data/stack.hh: Prefer a default argument value to two constructors. --- data/stack.hh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/data/stack.hh b/data/stack.hh index 1036eea1..e04ca023 100644 --- a/data/stack.hh +++ b/data/stack.hh @@ -36,12 +36,7 @@ m4_define([b4_stack_define], typedef typename S::const_reverse_iterator const_iterator; typedef typename S::size_type size_type; - stack () - { - seq_.reserve (200); - } - - stack (size_type n) + stack (size_type n = 200) : seq_ (n) {}