mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-03 20:34:26 +02:00
refactor: inline
replaced with MP_UNITS_INLINE
This commit is contained in:
@@ -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 {
|
||||
|
||||
|
Reference in New Issue
Block a user