From 3f145a25dbbca46d33d42b0c02791fe65fdff1c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johel=20Ernesto=20Guerrero=20Pe=C3=B1a?= Date: Mon, 7 Feb 2022 21:07:22 -0400 Subject: [PATCH] refactor: update hacks for LLVM 15 --- src/core/include/units/quantity.h | 2 +- test/unit_test/static/quantity_test.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/include/units/quantity.h b/src/core/include/units/quantity.h index 93b64007..6c2daab5 100644 --- a/src/core/include/units/quantity.h +++ b/src/core/include/units/quantity.h @@ -383,7 +383,7 @@ public: }; // CTAD -#if !UNITS_COMP_CLANG || UNITS_COMP_CLANG > 14 +#if !UNITS_COMP_CLANG || UNITS_COMP_CLANG > 15 template explicit(false) quantity(Rep&&) -> quantity; #endif diff --git a/test/unit_test/static/quantity_test.cpp b/test/unit_test/static/quantity_test.cpp index 47447b46..ccc0a9ca 100644 --- a/test/unit_test/static/quantity_test.cpp +++ b/test/unit_test/static/quantity_test.cpp @@ -273,7 +273,7 @@ static_assert(get_length_derived_quantity() == 1_q_m); // CTAD ///////// -#if UNITS_COMP_GCC >= 11 || UNITS_COMP_CLANG > 14 +#if UNITS_COMP_GCC >= 11 || UNITS_COMP_CLANG > 15 static_assert(std::is_same_v); static_assert(std::is_same_v); #endif