test: QUANTITY_SPEC_ macro fixed

This commit is contained in:
Mateusz Pusz
2023-06-16 17:00:41 +03:00
parent ad7f897600
commit 5c1b1e0ff4

View File

@@ -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
#define QUANTITY_SPEC_(name, ...) \
inline constexpr struct name##_ : quantity_spec<##__VA_ARGS__> { \
#define QUANTITY_SPEC_(name, ...) \
inline constexpr struct name##_ : quantity_spec<__VA_ARGS__> { \
} name
#else
#define QUANTITY_SPEC_(name, ...) \
inline constexpr struct name##_ : quantity_spec<name##_, ##__VA_ARGS__> { \
#define QUANTITY_SPEC_(name, ...) \
inline constexpr struct name##_ : quantity_spec<name##_, __VA_ARGS__> { \
} name
#endif