From 5f8b091d84bf6be9b2fa2e485e435e8f43e20b85 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Tue, 19 Apr 2022 12:40:54 -0700 Subject: Changeset: 13 Fix SmallVector.cpp missing include & remove warning on MSVC --- source/SmallVector.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source/SmallVector.hpp') diff --git a/source/SmallVector.hpp b/source/SmallVector.hpp index 96371c2..9461800 100644 --- a/source/SmallVector.hpp +++ b/source/SmallVector.hpp @@ -31,6 +31,11 @@ #include #include +#ifdef _MSC_VER +# pragma warning(push) +# pragma warning(disable : 4267) // The compiler detected a conversion from size_t to a smaller type. +#endif + template class iterator_range; @@ -1313,3 +1318,7 @@ inline void swap(SmallVector& LHS, SmallVector& RHS) { } } // namespace std + +#ifdef _MSC_VER +# pragma warning(pop) +#endif -- cgit v1.2.3-70-g09d2