fix: QUANTITY_SPEC macro fixed

This commit is contained in:
Mateusz Pusz
2023-06-15 17:01:52 +03:00
parent c8c7baef05
commit 5635f7d199

View File

@@ -356,14 +356,14 @@ struct quantity_spec<Self, QS, Eq, Args...> : quantity_spec<Self, QS, Args...> {
#ifdef __cpp_explicit_this_parameter #ifdef __cpp_explicit_this_parameter
#define QUANTITY_SPEC(name, ...) \ #define QUANTITY_SPEC(name, ...) \
inline constexpr struct name : ::mp_units::quantity_spec<##__VA_ARGS__> { \ inline constexpr struct name : ::mp_units::quantity_spec<__VA_ARGS__> { \
} name } name
#else #else
#define QUANTITY_SPEC(name, ...) \ #define QUANTITY_SPEC(name, ...) \
inline constexpr struct name : ::mp_units::quantity_spec<name, ##__VA_ARGS__> { \ inline constexpr struct name : ::mp_units::quantity_spec<name, __VA_ARGS__> { \
} name } name
#endif #endif