diff --git a/test/vector_test.cpp b/test/vector_test.cpp index 25fe1af..6c1597a 100644 --- a/test/vector_test.cpp +++ b/test/vector_test.cpp @@ -7,6 +7,13 @@ // See http://www.boost.org/libs/container for documentation. // ////////////////////////////////////////////////////////////////////////////// + +// the tests trigger deprecation warnings when compiled with msvc in C++17 mode +#if defined(_MSVC_LANG) && _MSVC_LANG > 201402 +// warning STL4009: std::allocator is deprecated in C++17 +# define _SILENCE_CXX17_ALLOCATOR_VOID_DEPRECATION_WARNING +#endif + #include #include