fix: inline restored for non-template constexpr global variables

This commit is contained in:
Mateusz Pusz committed 2024-09-05 10:06:43 +02:00
1 parent 2e840cfdb4
commit 45013f6752
63 files changed
+1591 -1589

No files matched your search

+4 -4
View File
@@ -36,14 +36,14 @@ constexpr bool is_of_type = std::is_same_v<MP_UNITS_REMOVE_CONST(decltype(V)), T
// NOLINTBEGIN(cppcoreguidelines-macro-usage)
#if MP_UNITS_API_NO_CRTP
#define QUANTITY_SPEC_(name, ...) \
constexpr struct name##_ final : quantity_spec<__VA_ARGS__> { \
#define QUANTITY_SPEC_(name, ...) \
inline constexpr struct name##_ final : quantity_spec<__VA_ARGS__> { \
} name
#else
#define QUANTITY_SPEC_(name, ...) \
constexpr struct name##_ final : quantity_spec<name##_, __VA_ARGS__> { \
#define QUANTITY_SPEC_(name, ...) \
inline constexpr struct name##_ final : quantity_spec<name##_, __VA_ARGS__> { \
} name
#endif