From a6c8130f88e1083a011e670cb84dc027812d94ec Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Sat, 15 Feb 2025 14:29:24 +0100 Subject: [PATCH] fix: MSVC complained about the usage of deprecated member --- src/core/include/mp-units/framework/dimension.h | 2 +- src/core/include/mp-units/framework/unit_symbol_formatting.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/include/mp-units/framework/dimension.h b/src/core/include/mp-units/framework/dimension.h index 95371ae56..05e8c61ab 100644 --- a/src/core/include/mp-units/framework/dimension.h +++ b/src/core/include/mp-units/framework/dimension.h @@ -213,7 +213,7 @@ template struct dimension_symbol_formatting { -#if MP_UNITS_COMP_CLANG +#if MP_UNITS_COMP_CLANG || MP_UNITS_COMP_MSVC // TODO prevents the deprecated usage in implicit copy constructor warning character_set char_set = character_set::default_character_set; #else diff --git a/src/core/include/mp-units/framework/unit_symbol_formatting.h b/src/core/include/mp-units/framework/unit_symbol_formatting.h index 9183b4f3c..2cc605393 100644 --- a/src/core/include/mp-units/framework/unit_symbol_formatting.h +++ b/src/core/include/mp-units/framework/unit_symbol_formatting.h @@ -54,7 +54,7 @@ enum class unit_symbol_separator : std::int8_t { }; struct unit_symbol_formatting { -#if MP_UNITS_COMP_CLANG +#if MP_UNITS_COMP_CLANG || MP_UNITS_COMP_MSVC // TODO prevents the deprecated usage in implicit copy constructor warning character_set char_set = character_set::default_character_set; #else