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>
|
template <typename T>
|
||||||
struct SerializationConfig {
|
struct SerializationConfig {
|
||||||
decltype([] {
|
decltype([] {
|
||||||
return []<std::size_t... Is>( // GCC Workaround
|
return [](auto... is) {
|
||||||
std::index_sequence<Is>...) -> utempl::Tuple<typename ElementConfig<boost::pfr::tuple_element_t<Is, T>>::type...> {
|
return utempl::Tuple<typename ElementConfig<boost::pfr::tuple_element_t<*is, T>>::type...>{};
|
||||||
std::unreachable();
|
} | utempl::kSeq<boost::pfr::tuple_size_v<T>>;
|
||||||
}(std::make_index_sequence<boost::pfr::tuple_size_v<T>>());
|
|
||||||
}()) tuple{};
|
}()) tuple{};
|
||||||
template <std::size_t I, typename Self> // NOLINTNEXTLINE
|
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 {
|
consteval auto With(this Self&& self, ElementConfig<boost::pfr::tuple_element_t<I, T>>::type config) -> SerializationConfig {
|
||||||
|
|
Loading…
Reference in a new issue