diff --git a/format.h b/format.h index f336aeca..19ca1e9f 100644 --- a/format.h +++ b/format.h @@ -999,6 +999,7 @@ class BasicFormatter { BasicFormatter(BasicWriter &w, const Char *format, std::initializer_list args) : writer_(&w), format_(format) { + args_.reserve(args.size()); for (const Arg &arg: args) Add(arg); }