From 2286749f977e003f3ad996fef6ee50a29d8b8841 Mon Sep 17 00:00:00 2001 From: Glen Fernandes Date: Thu, 15 Dec 2022 01:08:51 -0500 Subject: [PATCH] Change order of restoration of warning disables in allocator access --- include/boost/core/allocator_access.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/core/allocator_access.hpp b/include/boost/core/allocator_access.hpp index 567b448..8e33ebb 100644 --- a/include/boost/core/allocator_access.hpp +++ b/include/boost/core/allocator_access.hpp @@ -807,14 +807,14 @@ using allocator_rebind_t = typename allocator_rebind::type; } /* boost */ -#if defined(_LIBCPP_SUPPRESS_DEPRECATED_POP) -_LIBCPP_SUPPRESS_DEPRECATED_POP +#if defined(_MSC_VER) +#pragma warning(pop) #endif #if defined(_STL_RESTORE_DEPRECATED_WARNING) _STL_RESTORE_DEPRECATED_WARNING #endif -#if defined(_MSC_VER) -#pragma warning(pop) +#if defined(_LIBCPP_SUPPRESS_DEPRECATED_POP) +_LIBCPP_SUPPRESS_DEPRECATED_POP #endif #endif