fix: Some MSVC-specific special cases removed

This commit is contained in:
Mateusz Pusz
2021-09-23 19:16:44 +02:00
parent 40d6be9f75
commit ed1b2d2647
2 changed files with 1 additions and 5 deletions

View File

@@ -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>;

View File

@@ -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
} }
} }