diff --git a/src/core/include/mp-units/framework/representation_concepts.h b/src/core/include/mp-units/framework/representation_concepts.h index 25070f2f..3afda421 100644 --- a/src/core/include/mp-units/framework/representation_concepts.h +++ b/src/core/include/mp-units/framework/representation_concepts.h @@ -66,9 +66,8 @@ MP_UNITS_EXPORT enum class quantity_character : std::int8_t { scalar, complex, v MP_UNITS_EXPORT template constexpr bool disable_scalar = false; -// TODO clang-18 (and possibly other compilers) complain about the duplicated definition if `inline` is not used template<> -inline constexpr bool disable_scalar = true; +MP_UNITS_INLINE constexpr bool disable_scalar = true; namespace detail {