.
Some checks failed
PR Check / on-push-commit-check (push) Failing after 7m38s

This commit is contained in:
sha512sum 2024-11-08 11:18:42 +00:00
parent ca9713d928
commit 5992b454a5

View file

@ -189,10 +189,9 @@ auto SerializeField(xmlpp::Element* main, const T& obj) {
template <typename T>
struct SerializationConfig {
decltype([] {
return []<std::size_t... Is>( // GCC Workaround
std::index_sequence<Is>...) -> utempl::Tuple<typename ElementConfig<boost::pfr::tuple_element_t<Is, T>>::type...> {
std::unreachable();
}(std::make_index_sequence<boost::pfr::tuple_size_v<T>>());
return [](auto... is) {
return utempl::Tuple<typename ElementConfig<boost::pfr::tuple_element_t<*is, T>>::type...>{};
} | utempl::kSeq<boost::pfr::tuple_size_v<T>>;
}()) tuple{};
template <std::size_t I, typename Self> // NOLINTNEXTLINE
consteval auto With(this Self&& self, ElementConfig<boost::pfr::tuple_element_t<I, T>>::type config) -> SerializationConfig {