summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/codec/c++/data.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/codec/c++/data.hpp b/modules/codec/c++/data.hpp
index 51a34ef..4b34bfa 100644
--- a/modules/codec/c++/data.hpp
+++ b/modules/codec/c++/data.hpp
@@ -324,11 +324,11 @@ public:
{}
constexpr data<T, encode::Native>& at(data<schema::UInt64, encode::Native> i) {
- return value_.at(this->get_flat_index({i}));
+ return value_.at(this->get_flat_index({{i}}));
}
constexpr const data<T, encode::Native>& at(data<schema::UInt64, encode::Native> i) const {
- return value_.at(this->get_flat_index({i}));
+ return value_.at(this->get_flat_index({{i}}));
}
constexpr data<T, encode::Native>& at(const data<schema::FixedArray<schema::UInt64, sizeof...(D)>>& i){