#ifndef RFL_MSGPACK_PARSER_HPP_ #define RFL_MSGPACK_PARSER_HPP_ #include "../parsing/Parser.hpp" #include "Reader.hpp" #include "Writer.hpp" namespace rfl { namespace parsing { /// msgpack-c requires us to explicitly set the number of fields in advance. /// Because of that, we require all of the fields and then set them to nullptr, /// if necessary. template requires AreReaderAndWriter> struct Parser, ProcessorsType> : public NamedTupleParser { }; template requires AreReaderAndWriter> struct Parser, ProcessorsType> : public TupleParser { }; } // namespace parsing } // namespace rfl namespace rfl { namespace msgpack { template using Parser = parsing::Parser; } } // namespace rfl #endif