From 4ddc3fa15b79e0c01ec50595db2926fcc56d0c7b Mon Sep 17 00:00:00 2001 From: Chinmay Dalal Date: Sat, 19 Oct 2024 19:43:16 +0530 Subject: [PATCH] try to fix error --- include/boost/pfr/detail/fields_count.hpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/include/boost/pfr/detail/fields_count.hpp b/include/boost/pfr/detail/fields_count.hpp index c3397b3b..9bdcedbd 100644 --- a/include/boost/pfr/detail/fields_count.hpp +++ b/include/boost/pfr/detail/fields_count.hpp @@ -180,14 +180,22 @@ constexpr auto assert_first_not_base(long) noexcept ///////////////////// Helpers for initializable detection // Note that these take O(N) compile time and memory! -template ::value>> +template ::value and !std::is_aggregate_v>> constexpr auto enable_if_initializable_helper(std::index_sequence) noexcept -> std::add_pointer_t; -template ::value>> +template ::value and !std::is_aggregate_v>> constexpr auto enable_if_initializable_helper(std::index_sequence) noexcept -> std::add_pointer_t; +template ::value and std::is_aggregate_v>> +constexpr auto enable_if_initializable_helper(std::index_sequence) noexcept + -> std::add_pointer_t; + +template ::value and std::is_aggregate_v>> +constexpr auto enable_if_initializable_helper(std::index_sequence) noexcept + -> std::add_pointer_t; + template (detail::make_index_sequence()))> using enable_if_initializable_helper_t = U;