summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2025-06-13 14:13:54 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2025-06-13 14:13:54 +0200
commit2c5eb485e1da7b26a3db76ebfbd7019b6ee45907 (patch)
tree6606366d1da681039782c378eb3f6a4a2063e395 /modules
parentc6549eddb59d7d044f70f7f7973ac8b5480ae761 (diff)
Maybe fixed the index accessor
Diffstat (limited to 'modules')
-rw-r--r--modules/codec-json/c++/json.tmpl.hpp2
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;
}