19 #ifndef avro_AvroParse_hh__
20 #define avro_AvroParse_hh__
24 #include "ResolvingReader.hh"
35 template<
typename Reader,
typename T>
41 void parse(ResolvingReader &p, T &val) {
42 translatingParse(p, val, is_serializable<T>());
47 template<
typename Reader,
typename T>
49 static_assert(
sizeof(T) == 0,
"Not a valid type to parse");
52 template<
typename Reader,
typename T>
53 void translatingParse(Reader &p, T &val,
const std::false_type &) {
54 static_assert(
sizeof(T) == 0,
"Not a valid type to parse");
61 template<
typename Reader,
typename T>
66 template<
typename Reader>
67 void parse(Reader &p, std::vector<uint8_t> &val,
const std::true_type &) {
72 void translatingParse(ResolvingReader &p, T &val,
const std::true_type &) {