fix: QUANTITY_SPEC macros now use units:: namespace

This commit is contained in:
Mateusz Pusz
2022-12-23 18:04:40 +01:00
parent dd8fb22e6e
commit 9ad2cd5986

View File

@@ -381,14 +381,14 @@ struct quantity_spec<Self, Q, Args...> : std::remove_const_t<decltype(Q)> {
#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 : ::units::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 : ::units::quantity_spec<name, ##__VA_ARGS__> { \
} name
#endif