This commit is contained in:
parent
ca9713d928
commit
5992b454a5
1 changed files with 3 additions and 4 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue