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)>;