2 * Autogenerated by Thrift for src/module.thrift
4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
9 #include "thrift/compiler/test/fixtures/any/gen-cpp2/module_metadata.h"
10 #include <thrift/lib/cpp2/visitation/for_each.h>
17 struct ForEachField
<::cpp2::MyStruct
> {
18 template <typename F
, typename
... T
>
19 void operator()(FOLLY_MAYBE_UNUSED F
&& f
, FOLLY_MAYBE_UNUSED T
&&... t
) const {
20 f(0, static_cast<T
&&>(t
).myString_ref()...);
25 struct ForEachField
<::cpp2::MyUnion
> {
26 template <typename F
, typename
... T
>
27 void operator()(FOLLY_MAYBE_UNUSED F
&& f
, FOLLY_MAYBE_UNUSED T
&&... t
) const {
28 f(0, static_cast<T
&&>(t
).myString_ref()...);
33 struct ForEachField
<::cpp2::MyException
> {
34 template <typename F
, typename
... T
>
35 void operator()(FOLLY_MAYBE_UNUSED F
&& f
, FOLLY_MAYBE_UNUSED T
&&... t
) const {
36 f(0, static_cast<T
&&>(t
).myString_ref()...);