diff options
Diffstat (limited to 'modules/codec/c++/args.hpp')
-rw-r--r-- | modules/codec/c++/args.hpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/modules/codec/c++/args.hpp b/modules/codec/c++/args.hpp index 78664c8..a2b338b 100644 --- a/modules/codec/c++/args.hpp +++ b/modules/codec/c++/args.hpp @@ -70,7 +70,7 @@ struct args_decode<schema::Args<schema::Struct<schema::Member<Str,Lits>...>,sche using SchemaTuple = schema::Tuple<Tup...>; template<uint64_t i> - static error_or<void> decode_struct_member(data<Schema, ToDec>& to, std::string_view name, std::string_view value){ + static error_or<void> decode_struct_member(data<SchemaStruct, ToDec>& to, std::string_view name, std::string_view value){ if constexpr ( i < sizeof...(Str) ) { static constexpr string_literal Literal = parameter_key_pack_type<i,Lits...>::literal; @@ -82,7 +82,13 @@ struct args_decode<schema::Args<schema::Struct<schema::Member<Str,Lits>...>,sche return decode_struct_member<i+1u>(to, name, value); } - return make_error<err::not_found>{"Couldn't decode argument"}; + return make_error<err::not_found>("Couldn't decode argument"); + } + + template<uint64_t i> + static error_or<void> decode_tuple_member(data<SchemaTuple, ToDec>& to, std::string_view value){ + + return make_error<err::not_implemented>(); } static error_or<void> decode(data<Schema, encode::Args>& from, data<Schema,ToDec>& to){ |