mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-04 04:44:27 +02:00
fix: QUANTITY_SPEC
macro fixed
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user