From 5edcb3a2d1e07f5456c90fbf937b707621a3f9e1 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Sat, 23 Nov 2024 17:46:47 +0100 Subject: [PATCH] refactor: `std::is_trivial` will be deprecated in C++26 --- src/core/include/mp-units/framework/expression_template.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/include/mp-units/framework/expression_template.h b/src/core/include/mp-units/framework/expression_template.h index 7853a03b..891396ab 100644 --- a/src/core/include/mp-units/framework/expression_template.h +++ b/src/core/include/mp-units/framework/expression_template.h @@ -48,8 +48,9 @@ template concept SymbolicArg = (!std::is_const_v) && (!std::is_reference_v); template -concept SymbolicConstant = SymbolicArg && std::is_empty_v && std::is_final_v && std::is_trivial_v && - std::is_trivially_copy_constructible_v && std::is_trivially_move_constructible_v; +concept SymbolicConstant = SymbolicArg && std::is_empty_v && std::is_final_v && + std::is_trivially_default_constructible_v && std::is_trivially_copy_constructible_v && + std::is_trivially_move_constructible_v && std::is_trivially_destructible_v; /** * @brief Type list type used by the expression template framework