diff --git a/src/include/units/unit.h b/src/include/units/unit.h index 356be1ac..bf5a58ed 100644 --- a/src/include/units/unit.h +++ b/src/include/units/unit.h @@ -119,7 +119,7 @@ namespace units { // TODO gcc:92101 // Gated by the following gcc bug // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92101 -// template + // template // struct derived_unit; // template @@ -147,22 +147,22 @@ namespace units { template struct derived_unit : downcast_helper>> { - static constexpr auto symbol = Symbol::c_str(); + using symbol = Symbol; }; template struct derived_unit : downcast_helper> { - static constexpr auto symbol = Symbol::c_str(); + using symbol = Symbol; }; template struct derived_unit : downcast_helper { - static constexpr auto symbol = Symbol::c_str(); + using symbol = Symbol; }; template struct derived_unit : downcast_helper> { - static constexpr auto symbol = Symbol::c_str(); + using symbol = Symbol; }; // SI prefixes diff --git a/test/unit_test/runtime/print_helpers.h b/test/unit_test/runtime/print_helpers.h index 96088485..3e799eb8 100644 --- a/test/unit_test/runtime/print_helpers.h +++ b/test/unit_test/runtime/print_helpers.h @@ -30,7 +30,7 @@ namespace units { template std::ostream& operator<<(std::ostream& os, const quantity& value) { - return os << value.count() << Unit::symbol; + return os << value.count() << Unit::symbol::c_str(); } }