summaryrefslogtreecommitdiff
path: root/modules/codec/c++
diff options
context:
space:
mode:
Diffstat (limited to 'modules/codec/c++')
-rw-r--r--modules/codec/c++/data.hpp8
-rw-r--r--modules/codec/c++/simple.hpp2
2 files changed, 1 insertions, 9 deletions
diff --git a/modules/codec/c++/data.hpp b/modules/codec/c++/data.hpp
index b1b4729..9f65d08 100644
--- a/modules/codec/c++/data.hpp
+++ b/modules/codec/c++/data.hpp
@@ -700,14 +700,6 @@ class data<schema::Array<T,Dim>, encode::Native> {
static_assert(sizeof...(Dims)==Dim, "Argument size must be equal to the Dimension");
}
- constexpr data<T, encode::Native>& at(const std::array<uint64_t, Dim>& ind){
- return value_.at(this->get_flat_index(ind));
- }
-
- constexpr const data<T, encode::Native>& at(const std::array<uint64_t, Dim>& ind) const {
- return value_.at(this->get_flat_index(ind));
- }
-
data<T, encode::Native>& at(data<schema::UInt64, encode::Native> i) {
data<schema::FixedArray<schema::UInt64,Dim>, encode::Native> i_arr;
i_arr.at(0u) = i;
diff --git a/modules/codec/c++/simple.hpp b/modules/codec/c++/simple.hpp
index 4990578..de35c3e 100644
--- a/modules/codec/c++/simple.hpp
+++ b/modules/codec/c++/simple.hpp
@@ -212,7 +212,7 @@ struct kelsimple_decode<schema::Array<T,Dim>, FromEnc> {
template<std::size_t Level>
static error_or<void> decode_level(buffer& from, data<schema::Array<T,Dim>, FromEnc>& to, std::array<std::size_t, Dim>& index){
if constexpr (Level == Dim){
- return kelsimple_decode<T, FromEnc>::decode(from, to.at(index));
+ return kelsimple_decode<T, FromEnc>::decode(from, {to.at(index)});
}else{
const std::size_t dim_size = to.get_dim_size(Level);
for(index[Level] = 0; index[Level] < dim_size; ++index[Level]){