mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-04 20:54:28 +02:00
fix: Some MSVC-specific special cases removed
This commit is contained in:
@@ -75,7 +75,7 @@ public:
|
|||||||
uncertainty_type uncertainty;
|
uncertainty_type uncertainty;
|
||||||
};
|
};
|
||||||
|
|
||||||
#if UNITS_COMP_CLANG <= 13 || UNITS_COMP_MSVC
|
#if UNITS_COMP_CLANG <= 13
|
||||||
|
|
||||||
template<QuantityOrQuantityPoint QQP, units::Quantity U>
|
template<QuantityOrQuantityPoint QQP, units::Quantity U>
|
||||||
estimation(state<QQP>, U) -> estimation<QQP>;
|
estimation(state<QQP>, U) -> estimation<QQP>;
|
||||||
|
@@ -75,12 +75,10 @@ TEST_CASE("absolute functions on quantity returns the absolute value", "[math][a
|
|||||||
REQUIRE(abs(-1_q_m) == 1_q_m);
|
REQUIRE(abs(-1_q_m) == 1_q_m);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef UNITS_COMP_MSVC
|
|
||||||
SECTION ("floating-point representation")
|
SECTION ("floating-point representation")
|
||||||
{
|
{
|
||||||
REQUIRE(abs(-1._q_m) == 1_q_m);
|
REQUIRE(abs(-1._q_m) == 1_q_m);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SECTION ("'abs()' on a positive quantity returns the abs")
|
SECTION ("'abs()' on a positive quantity returns the abs")
|
||||||
@@ -90,12 +88,10 @@ TEST_CASE("absolute functions on quantity returns the absolute value", "[math][a
|
|||||||
REQUIRE(abs(1_q_m) == 1_q_m);
|
REQUIRE(abs(1_q_m) == 1_q_m);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef UNITS_COMP_MSVC
|
|
||||||
SECTION ("floating-point representation")
|
SECTION ("floating-point representation")
|
||||||
{
|
{
|
||||||
REQUIRE(abs(1._q_m) == 1_q_m);
|
REQUIRE(abs(1._q_m) == 1_q_m);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user