Commit 6cd1563e authored by Victor Zverovich's avatar Victor Zverovich

Add a size argument to Array ctor.

parent e04b0792
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment