diff --git a/include/span.h b/include/span.h index a5d2823..1405aa9 100644 --- a/include/span.h +++ b/include/span.h @@ -814,10 +814,13 @@ as_writeable_bytes(span s) noexcept #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