@@ -141,28 +141,6 @@ struct ReadDestUpdate
141
141
Value& m_value;
142
142
};
143
143
144
-
145
-
146
-
147
- // TODO: Should generalize this to work with arbitrary length tuples, not just length 2-tuples.
148
- template <typename KeyLocalType, typename ValueLocalType, typename Input, typename ReadDest>
149
- decltype (auto ) CustomReadField(TypeList<std::tuple<KeyLocalType, ValueLocalType>>,
150
- Priority<1 >,
151
- InvokeContext& invoke_context,
152
- Input&& input,
153
- ReadDest&& read_dest)
154
- {
155
- return read_dest.update ([&](auto & value) {
156
- const auto & pair = input.get ();
157
- using Struct = ProxyStruct<typename Decay<decltype (pair)>::Reads>;
158
- using Accessors = typename Struct::Accessors;
159
- ReadField (TypeList<KeyLocalType>(), invoke_context, Make<StructField, std::tuple_element_t <0 , Accessors>>(pair),
160
- ReadDestUpdate (std::get<0 >(value)));
161
- ReadField (TypeList<ValueLocalType>(), invoke_context, Make<StructField, std::tuple_element_t <1 , Accessors>>(pair),
162
- ReadDestUpdate (std::get<1 >(value)));
163
- });
164
- }
165
-
166
144
template <typename LocalType, typename Input, typename ReadDest>
167
145
decltype (auto ) CustomReadField(TypeList<LocalType>,
168
146
Priority<1 >,
@@ -584,20 +562,6 @@ void CustomBuildField(TypeList<std::exception>,
584
562
{
585
563
BuildField (TypeList<std::string>(), invoke_context, output, std::string (value.what ()));
586
564
}
587
- // TODO: Should generalize this to work with arbitrary length tuples, not just length 2-tuples.
588
- template <typename KeyLocalType, typename ValueLocalType, typename Value, typename Output>
589
- void CustomBuildField (TypeList<std::tuple<KeyLocalType, ValueLocalType>>,
590
- Priority<1 >,
591
- InvokeContext& invoke_context,
592
- Value&& value,
593
- Output&& output)
594
- {
595
- auto pair = output.init ();
596
- using Accessors = typename ProxyStruct<typename decltype (pair)::Builds>::Accessors;
597
- BuildField (TypeList<KeyLocalType>(), invoke_context, Make<StructField, std::tuple_element_t <0 , Accessors>>(pair), std::get<0 >(value));
598
- BuildField (TypeList<ValueLocalType>(), invoke_context, Make<StructField, std::tuple_element_t <1 , Accessors>>(pair), std::get<1 >(value));
599
- }
600
-
601
565
template <typename LocalType, typename Value, typename Output>
602
566
void CustomBuildField (TypeList<const LocalType>,
603
567
Priority<0 >,
0 commit comments