diff options
author | hnOsmium0001 <[email protected]> | 2022-04-19 12:40:21 -0700 |
---|---|---|
committer | hnOsmium0001 <[email protected]> | 2022-04-19 12:40:54 -0700 |
commit | 6234cefaaf18f377256c035c7c861bbb6ec7a8a6 (patch) | |
tree | 8b0515ab83fc6504aa6c362d9594b3bb932253f8 /source/SmallVector.hpp | |
parent | 497a0ddb2ab57f6c517543ca20ea1b8333214710 (diff) |
Fix SmallVector.cpp missing include & remove warning on MSVC
Diffstat (limited to 'source/SmallVector.hpp')
-rw-r--r-- | source/SmallVector.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
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 <type_traits> #include <utility> +#ifdef _MSC_VER +# pragma warning(push) +# pragma warning(disable : 4267) // The compiler detected a conversion from size_t to a smaller type. +#endif + template <typename IteratorT> class iterator_range; @@ -1313,3 +1318,7 @@ inline void swap(SmallVector<T, N>& LHS, SmallVector<T, N>& RHS) { } } // namespace std + +#ifdef _MSC_VER +# pragma warning(pop) +#endif |