From 6cd1563eac02771ff30a25fc2d0f4b559824582d Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 6 Aug 2014 07:17:03 -0700 Subject: [PATCH] Add a size argument to Array ctor. --- format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format.h b/format.h index 322c0bf8..01a45329 100644 --- a/format.h +++ b/format.h @@ -271,7 +271,7 @@ class Array { FMT_DISALLOW_COPY_AND_ASSIGN(Array); public: - Array() : size_(0), capacity_(SIZE), ptr_(data_) {} + explicit Array(std::size_t size = 0) : size_(size), capacity_(SIZE), ptr_(data_) {} ~Array() { free(); } #if FMT_USE_RVALUE_REFERENCES