From d1897b1fe95bdc040ee1e4e67b07d166fbea08e8 Mon Sep 17 00:00:00 2001 From: Jonas Hoppe <162709928+czjhoppe@users.noreply.github.com> Date: Wed, 4 Sep 2024 09:28:44 +0200 Subject: [PATCH] [PR] change disable error to macro --- src/core/include/mp-units/bits/fmt.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/core/include/mp-units/bits/fmt.h b/src/core/include/mp-units/bits/fmt.h index 3589bc11..084027f3 100644 --- a/src/core/include/mp-units/bits/fmt.h +++ b/src/core/include/mp-units/bits/fmt.h @@ -189,10 +189,8 @@ constexpr void handle_dynamic_spec(int& value, fmt_arg_ref [[nodiscard]] constexpr unsigned long long operator()(T value) const @@ -205,10 +203,7 @@ struct width_checker { MP_UNITS_THROW(MP_UNITS_STD_FMT::format_error("width is not integer")); } }; - -#ifdef _MSC_VER -#pragma warning(pop) -#endif +MP_UNITS_DIAGNOSTIC_POP MP_UNITS_EXPORT_END