1 /** 2 * Autogenerated by Thrift for src/module.thrift 3 * 4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING 5 * @generated @nocommit 6 */ 7 #pragma once 8 9 #include "thrift/compiler/test/fixtures/deprecated-enforce-required/gen-cpp2/module_metadata.h" 10 #include <thrift/lib/cpp2/visitation/for_each.h> 11 12 namespace apache { 13 namespace thrift { 14 namespace detail { 15 16 template <> 17 struct ForEachField<::cpp2::Foo> { 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).bar_ref()...); 21 } 22 }; 23 } // namespace detail 24 } // namespace thrift 25 } // namespace apache 26