diff --git a/include/xo/unit/basis_unit.hpp b/include/xo/unit/basis_unit.hpp index 0b682cf2..0bbbfc77 100644 --- a/include/xo/unit/basis_unit.hpp +++ b/include/xo/unit/basis_unit.hpp @@ -203,16 +203,6 @@ namespace xo { .abbrev_str())); }; - inline - constexpr bu_abbrev_type - bu_fallback_abbrev(dim basis_dim, - const scalefactor_ratio_type & scalefactor) - { - return (bu_abbrev_type::from_flatstring - (flatstring_concat - (scalefactor.to_str(), - native_unit2_v[static_cast(basis_dim)].abbrev_str()))); - } } } /*namespace qty*/ } /*namespace xo*/ diff --git a/include/xo/unit/bu_store.hpp b/include/xo/unit/bu_store.hpp index 20d30759..7fe6b01f 100644 --- a/include/xo/unit/bu_store.hpp +++ b/include/xo/unit/bu_store.hpp @@ -173,6 +173,16 @@ namespace xo { //this->bu_establish_abbrev_for(); } + static constexpr bu_abbrev_type + bu_fallback_abbrev(dim basis_dim, + const scalefactor_ratio_type & scalefactor) + { + return (bu_abbrev_type::from_flatstring + (flatstring_concat + (scalefactor.to_str(), + native_unit2_v[static_cast(basis_dim)].abbrev_str()))); + } + /** @brief get basis-unit abbreviation at runtime **/ constexpr bu_abbrev_type bu_abbrev(dim basis_dim, const scalefactor_ratio_type & scalefactor) const @@ -186,7 +196,7 @@ namespace xo { { return bu_abbrev_v[i_abbrev].second; } else { - return units::bu_fallback_abbrev(basis_dim, scalefactor); + return bu_fallback_abbrev(basis_dim, scalefactor); } }