diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-04-10 15:41:57 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-04-10 15:41:57 +0200 |
commit | 0457249dcfea285c4a3685d4806bbb9b39037091 (patch) | |
tree | 430c3bd046de08b1b187b4344b98d751d7dd1f72 /modules/codec/c++ | |
parent | dcac0f39732c760e4956b2cabe19c3d6088169d2 (diff) |
wip ambiguity fixes
Diffstat (limited to 'modules/codec/c++')
-rw-r--r-- | modules/codec/c++/data.hpp | 8 | ||||
-rw-r--r-- | modules/codec/c++/simple.hpp | 2 |
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]){ |