From 0457249dcfea285c4a3685d4806bbb9b39037091 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Thu, 10 Apr 2025 15:41:57 +0200 Subject: wip ambiguity fixes --- modules/codec/c++/data.hpp | 8 -------- modules/codec/c++/simple.hpp | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) (limited to 'modules/codec/c++') 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, encode::Native> { static_assert(sizeof...(Dims)==Dim, "Argument size must be equal to the Dimension"); } - constexpr data& at(const std::array& ind){ - return value_.at(this->get_flat_index(ind)); - } - - constexpr const data& at(const std::array& ind) const { - return value_.at(this->get_flat_index(ind)); - } - data& at(data i) { data, 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, FromEnc> { template static error_or decode_level(buffer& from, data, FromEnc>& to, std::array& index){ if constexpr (Level == Dim){ - return kelsimple_decode::decode(from, to.at(index)); + return kelsimple_decode::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]){ -- cgit v1.2.3