From ed1b2d2647d7837ee0c85c1914b94f904cb71cbb Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Thu, 23 Sep 2021 19:16:44 +0200 Subject: [PATCH] fix: Some MSVC-specific special cases removed --- example/kalman_filter/kalman.h | 2 +- test/unit_test/runtime/math_test.cpp | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/example/kalman_filter/kalman.h b/example/kalman_filter/kalman.h index 5f92e55a..d8c54a89 100644 --- a/example/kalman_filter/kalman.h +++ b/example/kalman_filter/kalman.h @@ -75,7 +75,7 @@ public: uncertainty_type uncertainty; }; -#if UNITS_COMP_CLANG <= 13 || UNITS_COMP_MSVC +#if UNITS_COMP_CLANG <= 13 template estimation(state, U) -> estimation; diff --git a/test/unit_test/runtime/math_test.cpp b/test/unit_test/runtime/math_test.cpp index 8835ae25..3aac9d3a 100644 --- a/test/unit_test/runtime/math_test.cpp +++ b/test/unit_test/runtime/math_test.cpp @@ -75,12 +75,10 @@ TEST_CASE("absolute functions on quantity returns the absolute value", "[math][a REQUIRE(abs(-1_q_m) == 1_q_m); } -#ifndef UNITS_COMP_MSVC SECTION ("floating-point representation") { REQUIRE(abs(-1._q_m) == 1_q_m); } -#endif } 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); } -#ifndef UNITS_COMP_MSVC SECTION ("floating-point representation") { REQUIRE(abs(1._q_m) == 1_q_m); } -#endif } }