From 781aa84a82f6305c5948384a7806a3db358ccca7 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Tue, 26 Nov 2024 16:52:36 +0100 Subject: [PATCH] refactor: `inline` replaced with `MP_UNITS_INLINE` --- src/core/include/mp-units/framework/representation_concepts.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 {