refactor: inline replaced with MP_UNITS_INLINE

This commit is contained in:
Mateusz Pusz
2024-11-26 16:52:36 +01:00
parent 41a803d025
commit 781aa84a82

View File

@@ -66,9 +66,8 @@ MP_UNITS_EXPORT enum class quantity_character : std::int8_t { scalar, complex, v
MP_UNITS_EXPORT template<typename T>
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<bool> = true;
MP_UNITS_INLINE constexpr bool disable_scalar<bool> = true;
namespace detail {