From e988e1d74e4ae886c1fb8c63b1a68fb7aaca7e85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johel=20Ernesto=20Guerrero=20Pe=C3=B1a?= Date: Fri, 29 Jul 2022 17:17:07 -0400 Subject: [PATCH] refactor: update hacks for LLVM 16 --- 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 6f9f9d0c..3b45cba2 100644 --- a/src/core/include/units/quantity.h +++ b/src/core/include/units/quantity.h @@ -444,7 +444,7 @@ public: }; // CTAD -#if !UNITS_COMP_CLANG || UNITS_COMP_CLANG > 15 +#if !UNITS_COMP_CLANG || UNITS_COMP_CLANG > 16 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 576c6679..d631d1a6 100644 --- a/test/unit_test/static/quantity_test.cpp +++ b/test/unit_test/static/quantity_test.cpp @@ -287,7 +287,7 @@ static_assert(get_length_derived_quantity() == 1_q_m); // CTAD ///////// -#if UNITS_COMP_GCC >= 11 || UNITS_COMP_CLANG > 15 +#if UNITS_COMP_GCC >= 11 || UNITS_COMP_CLANG > 16 static_assert(std::is_same_v); static_assert(std::is_same_v); static_assert(