diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-03-19 13:40:40 +0100 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-03-19 13:40:40 +0100 |
commit | 06d7ee4e384f81e862d0bdc1605bd3c21e0720d3 (patch) | |
tree | 8068f1ade2e9f543baf639de4a05a9e91d53184c /c++/descriptor.h | |
parent | 4475cc3d61d6bc6b522521c53079a747a0546e3e (diff) |
Fixed typing and lots of compile issues
Diffstat (limited to 'c++/descriptor.h')
-rw-r--r-- | c++/descriptor.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/c++/descriptor.h b/c++/descriptor.h index 052365d..564a705 100644 --- a/c++/descriptor.h +++ b/c++/descriptor.h @@ -85,7 +85,10 @@ public: data() = default; data<Sch, Encode>& operator()(const data<schema::UInt64>& index){ - return inner_(index); + return inner_.at(index); + } + const data<Sch, Encode>& operator()(const data<schema::UInt64>& index)const{ + return inner_.at(index); } }; @@ -97,6 +100,7 @@ public: private: data<schema::Array<CellT,Desc::D>, Encode> inner_; public: + data() = default; data(const data<schema::FixedArray<schema::UInt64, Desc::D>>& inner_meta__): inner_{inner_meta__} {} @@ -107,8 +111,12 @@ public: return inner_.template get_dim_size<i>(); } + const data<CellT>& operator()(const data<schema::FixedArray<schema::UInt64, Desc::D>, Encode>& index)const{ + return inner_.at(index); + } + data<CellT>& operator()(const data<schema::FixedArray<schema::UInt64, Desc::D>, Encode>& index){ - return inner_(index); + return inner_.at(index); } }; } |