From 3f045524913367d65422e118764762b1ebb4bbe2 Mon Sep 17 00:00:00 2001 From: sha512sum Date: Sat, 31 Aug 2024 18:09:04 +0000 Subject: [PATCH] Fix FieldSetHelpers for const objects --- library/include/larra/utils.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/include/larra/utils.hpp b/library/include/larra/utils.hpp index 5d2898b..d053c82 100644 --- a/library/include/larra/utils.hpp +++ b/library/include/larra/utils.hpp @@ -163,7 +163,7 @@ struct FieldSetHelper { }())> static constexpr auto With(Self&& self, Value&& value) -> Type requires( - std::is_aggregate_v && (std::same_as || requires { static_cast(self); }) && + std::is_aggregate_v && (std::same_as || requires { static_cast(self); }) && [] { if constexpr(I < boost::pfr::tuple_size_v) { return std::is_constructible_v(std::declval()))>, decltype(value)>;