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