mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-05 13:14:29 +02:00
fix: QUANTITY_SPEC
macros now use units::
namespace
This commit is contained in:
@@ -381,14 +381,14 @@ struct quantity_spec<Self, Q, Args...> : std::remove_const_t<decltype(Q)> {
|
|||||||
|
|
||||||
#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 : ::units::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 : ::units::quantity_spec<name, ##__VA_ARGS__> { \
|
||||||
} name
|
} name
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user