diff --git a/include/span.h b/include/span.h index a612983..b7a3d77 100644 --- a/include/span.h +++ b/include/span.h @@ -2221,10 +2221,13 @@ general_span_iterator operator+(typename general_span_iterator::diff #undef noexcept #ifdef _MSC_VER -#pragma warning(pop) #pragma pop_macro("noexcept") #endif #endif // GSL_THROW_ON_CONTRACT_VIOLATION +#ifdef _MSC_VER +#pragma warning(pop) +#endif + #endif // GSL_SPAN_H