mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-02 20:04:27 +02:00
test: QUANTITY_SPEC_
macro fixed
This commit is contained in:
@@ -139,14 +139,14 @@ inline constexpr bool is_of_type = std::is_same_v<std::remove_cvref_t<decltype(V
|
|||||||
|
|
||||||
#ifdef __cpp_explicit_this_parameter
|
#ifdef __cpp_explicit_this_parameter
|
||||||
|
|
||||||
#define QUANTITY_SPEC_(name, ...) \
|
#define QUANTITY_SPEC_(name, ...) \
|
||||||
inline constexpr struct name##_ : quantity_spec<##__VA_ARGS__> { \
|
inline constexpr struct name##_ : quantity_spec<__VA_ARGS__> { \
|
||||||
} name
|
} name
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#define QUANTITY_SPEC_(name, ...) \
|
#define QUANTITY_SPEC_(name, ...) \
|
||||||
inline constexpr struct name##_ : quantity_spec<name##_, ##__VA_ARGS__> { \
|
inline constexpr struct name##_ : quantity_spec<name##_, __VA_ARGS__> { \
|
||||||
} name
|
} name
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user