Remove warning pragmas since there is no effect on "security" warnings

This commit is contained in:
Victor Zverovich 2013-04-22 08:37:01 -07:00
parent ca7e689e08
commit 1cad3fadd6

View File

@ -100,9 +100,6 @@ class Array {
const T &operator[](std::size_t index) const { return ptr_[index]; } const T &operator[](std::size_t index) const { return ptr_[index]; }
}; };
#pragma warning(push)
#pragma warning(disable: 4996)
template <typename T, std::size_t SIZE> template <typename T, std::size_t SIZE>
void Array<T, SIZE>::Grow(std::size_t size) { void Array<T, SIZE>::Grow(std::size_t size) {
capacity_ = (std::max)(size, capacity_ + capacity_ / 2); capacity_ = (std::max)(size, capacity_ + capacity_ / 2);
@ -122,8 +119,6 @@ void Array<T, SIZE>::append(const T *begin, const T *end) {
size_ += num_elements; size_ += num_elements;
} }
#pragma warning(pop)
// Information about an integer type. // Information about an integer type.
// IntTraits is not specialized for integer types smaller than int, // IntTraits is not specialized for integer types smaller than int,
// since these are promoted to int. // since these are promoted to int.