Skip to content

Commit

Permalink
fix: MSVC complained about the usage of deprecated member
Browse files Browse the repository at this point in the history
  • Loading branch information
mpusz committed Feb 15, 2025
1 parent e625843 commit a6c8130
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/include/mp-units/framework/dimension.h
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ template<std::intmax_t Num, std::intmax_t Den = 1, Dimension D>


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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a6c8130

Please sign in to comment.