mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-31 19:04:27 +02:00
fix: invalid preprocessor conditions fixed
This commit is contained in:
@@ -32,7 +32,7 @@ namespace mp_units {
|
|||||||
template<Reference auto R, RepresentationOf<get_quantity_spec(R).character> Rep>
|
template<Reference auto R, RepresentationOf<get_quantity_spec(R).character> Rep>
|
||||||
class quantity;
|
class quantity;
|
||||||
|
|
||||||
#if MP_UNITS_COMP_CLANG < 17
|
#if defined MP_UNITS_COMP_CLANG && MP_UNITS_COMP_CLANG < 17
|
||||||
template<auto R, typename Rep>
|
template<auto R, typename Rep>
|
||||||
#else
|
#else
|
||||||
template<Reference auto R, typename Rep>
|
template<Reference auto R, typename Rep>
|
||||||
|
@@ -110,7 +110,7 @@ template<Reference auto R, PointOriginFor<get_quantity_spec(R)> auto PO,
|
|||||||
RepresentationOf<get_quantity_spec(R).character> Rep>
|
RepresentationOf<get_quantity_spec(R).character> Rep>
|
||||||
class quantity_point;
|
class quantity_point;
|
||||||
|
|
||||||
#if MP_UNITS_COMP_CLANG < 17
|
#if defined MP_UNITS_COMP_CLANG && MP_UNITS_COMP_CLANG < 17
|
||||||
template<auto PO, typename Q>
|
template<auto PO, typename Q>
|
||||||
#else
|
#else
|
||||||
template<PointOrigin auto PO, Quantity Q>
|
template<PointOrigin auto PO, Quantity Q>
|
||||||
|
@@ -325,7 +325,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
#if MP_UNITS_COMP_CLANG < 17
|
#if defined MP_UNITS_COMP_CLANG && MP_UNITS_COMP_CLANG < 17
|
||||||
template<auto R2, typename Rep2>
|
template<auto R2, typename Rep2>
|
||||||
#else
|
#else
|
||||||
template<Reference auto R2, typename Rep2>
|
template<Reference auto R2, typename Rep2>
|
||||||
@@ -439,7 +439,7 @@ template<auto R1, typename Rep1, auto R2, typename Rep2>
|
|||||||
}
|
}
|
||||||
|
|
||||||
// make_quantity
|
// make_quantity
|
||||||
#if MP_UNITS_COMP_CLANG < 17
|
#if defined MP_UNITS_COMP_CLANG && MP_UNITS_COMP_CLANG < 17
|
||||||
template<auto R, typename Rep>
|
template<auto R, typename Rep>
|
||||||
#else
|
#else
|
||||||
template<Reference auto R, typename Rep>
|
template<Reference auto R, typename Rep>
|
||||||
|
@@ -207,7 +207,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
#if MP_UNITS_COMP_CLANG < 17
|
#if defined MP_UNITS_COMP_CLANG && MP_UNITS_COMP_CLANG < 17
|
||||||
template<auto PO2, typename Q>
|
template<auto PO2, typename Q>
|
||||||
#else
|
#else
|
||||||
template<PointOrigin auto PO2, Quantity Q>
|
template<PointOrigin auto PO2, Quantity Q>
|
||||||
@@ -360,7 +360,7 @@ template<QuantityPoint QP1, QuantityPointOf<QP1::absolute_point_origin> QP2>
|
|||||||
}
|
}
|
||||||
|
|
||||||
// make_quantity_point
|
// make_quantity_point
|
||||||
#if MP_UNITS_COMP_CLANG < 17
|
#if defined MP_UNITS_COMP_CLANG && MP_UNITS_COMP_CLANG < 17
|
||||||
template<auto PO, typename Q>
|
template<auto PO, typename Q>
|
||||||
#else
|
#else
|
||||||
template<PointOrigin auto PO, Quantity Q>
|
template<PointOrigin auto PO, Quantity Q>
|
||||||
|
Reference in New Issue
Block a user