From ca7e689e08d7a896055b9b7a4ff369654c46c72d Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Mon, 22 Apr 2013 08:11:57 -0700 Subject: [PATCH] Add missing include, try disable warnings on MSVC. --- format.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/format.h b/format.h index 211c1a3c..7a738969 100644 --- a/format.h +++ b/format.h @@ -36,6 +36,7 @@ #include #include #include +#include #include #include #include @@ -99,6 +100,9 @@ class Array { const T &operator[](std::size_t index) const { return ptr_[index]; } }; +#pragma warning(push) +#pragma warning(disable: 4996) + template void Array::Grow(std::size_t size) { capacity_ = (std::max)(size, capacity_ + capacity_ / 2); @@ -118,6 +122,8 @@ void Array::append(const T *begin, const T *end) { size_ += num_elements; } +#pragma warning(pop) + // Information about an integer type. // IntTraits is not specialized for integer types smaller than int, // since these are promoted to int.