From f7bd67bf09195e6640e1c20237884d305368dce8 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Fri, 25 Aug 2023 22:48:27 +0200 Subject: [PATCH] fix: invalid preprocessor conditions fixed --- src/core/include/mp-units/bits/quantity_concepts.h | 2 +- src/core/include/mp-units/bits/quantity_point_concepts.h | 2 +- src/core/include/mp-units/quantity.h | 4 ++-- src/core/include/mp-units/quantity_point.h | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/core/include/mp-units/bits/quantity_concepts.h b/src/core/include/mp-units/bits/quantity_concepts.h index 42e5903a..e266d2ad 100644 --- a/src/core/include/mp-units/bits/quantity_concepts.h +++ b/src/core/include/mp-units/bits/quantity_concepts.h @@ -32,7 +32,7 @@ namespace mp_units { template Rep> class quantity; -#if MP_UNITS_COMP_CLANG < 17 +#if defined MP_UNITS_COMP_CLANG && MP_UNITS_COMP_CLANG < 17 template #else template diff --git a/src/core/include/mp-units/bits/quantity_point_concepts.h b/src/core/include/mp-units/bits/quantity_point_concepts.h index 695d9da3..ea58c49d 100644 --- a/src/core/include/mp-units/bits/quantity_point_concepts.h +++ b/src/core/include/mp-units/bits/quantity_point_concepts.h @@ -110,7 +110,7 @@ template auto PO, RepresentationOf Rep> class quantity_point; -#if MP_UNITS_COMP_CLANG < 17 +#if defined MP_UNITS_COMP_CLANG && MP_UNITS_COMP_CLANG < 17 template #else template diff --git a/src/core/include/mp-units/quantity.h b/src/core/include/mp-units/quantity.h index 6cd9a78e..14552fb7 100644 --- a/src/core/include/mp-units/quantity.h +++ b/src/core/include/mp-units/quantity.h @@ -325,7 +325,7 @@ public: } private: -#if MP_UNITS_COMP_CLANG < 17 +#if defined MP_UNITS_COMP_CLANG && MP_UNITS_COMP_CLANG < 17 template #else template @@ -439,7 +439,7 @@ template } // make_quantity -#if MP_UNITS_COMP_CLANG < 17 +#if defined MP_UNITS_COMP_CLANG && MP_UNITS_COMP_CLANG < 17 template #else template diff --git a/src/core/include/mp-units/quantity_point.h b/src/core/include/mp-units/quantity_point.h index 6deea3e0..9408b797 100644 --- a/src/core/include/mp-units/quantity_point.h +++ b/src/core/include/mp-units/quantity_point.h @@ -207,7 +207,7 @@ public: } private: -#if MP_UNITS_COMP_CLANG < 17 +#if defined MP_UNITS_COMP_CLANG && MP_UNITS_COMP_CLANG < 17 template #else template @@ -360,7 +360,7 @@ template QP2> } // make_quantity_point -#if MP_UNITS_COMP_CLANG < 17 +#if defined MP_UNITS_COMP_CLANG && MP_UNITS_COMP_CLANG < 17 template #else template