#ifndef RFL_INTERNAL_HASTOCLASSMETHODV_HPP_ #define RFL_INTERNAL_HASTOCLASSMETHODV_HPP_ #include namespace rfl { namespace internal { template using to_class_method_t = decltype(std::declval().to_class()); template > struct has_to_class_m : std::false_type {}; template struct has_to_class_m>> : std::true_type {}; /// Utility parameter for named tuple parsing, can be used by the /// parsers to determine whether a class or struct has a method /// called "to_class". template constexpr bool has_to_class_method_v = has_to_class_m::value; } // namespace internal } // namespace rfl #endif