From 6d488071fc9753cee456d6011911030b72a9baf6 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Thu, 15 Jun 2023 17:27:28 +0300 Subject: [PATCH] refactor: clang still does not support C++17 feature related to template tempaltes with default compilation flags --- src/core/include/mp-units/bits/expression_template.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/include/mp-units/bits/expression_template.h b/src/core/include/mp-units/bits/expression_template.h index ab98a5e8..7e83c6a3 100644 --- a/src/core/include/mp-units/bits/expression_template.h +++ b/src/core/include/mp-units/bits/expression_template.h @@ -268,10 +268,10 @@ struct expr_simplify, NRest...>, type_list typename Pred> +template typename Pred> struct expr_less_impl : Pred, expr_type> {}; -template typename Pred> +template typename Pred> struct expr_less_impl, Pred> : std::true_type {}; /** @@ -280,7 +280,7 @@ struct expr_less_impl, Pred> : std::true_type {}; * Algorithm accounts not only for explicit types but also for the case when they * are wrapped within `power`. */ -template typename Pred> +template typename Pred> using expr_less = expr_less_impl;