diff options
Diffstat (limited to 'modules/codec-json/c++/json.tmpl.hpp')
-rw-r--r-- | modules/codec-json/c++/json.tmpl.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/codec-json/c++/json.tmpl.hpp b/modules/codec-json/c++/json.tmpl.hpp index 956393f..f37b440 100644 --- a/modules/codec-json/c++/json.tmpl.hpp +++ b/modules/codec-json/c++/json.tmpl.hpp @@ -266,7 +266,7 @@ struct json_encode<schema::FixedArray<T,D...>, FromEncode> { using Schema = schema::FixedArray<T,D...>; static error_or<void> encode_at(const data<Schema, FromEncode>& from, buffer& to, std::array<std::size_t, sizeof...(D)>& index, uint64_t depth, bool pretty){ - auto eov = json_encode<T, FromEncode>::encode(from.at(index), to, depth, pretty); + auto eov = json_encode<T, FromEncode>::encode(from.at({index}), to, depth, pretty); if(eov.is_error()){ return eov; } |