From 06d7ee4e384f81e862d0bdc1605bd3c21e0720d3 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Wed, 19 Mar 2025 13:40:40 +0100 Subject: Fixed typing and lots of compile issues --- c++/descriptor.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'c++/descriptor.h') 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& operator()(const data& index){ - return inner_(index); + return inner_.at(index); + } + const data& operator()(const data& index)const{ + return inner_.at(index); } }; @@ -97,6 +100,7 @@ public: private: data, Encode> inner_; public: + data() = default; data(const data>& inner_meta__): inner_{inner_meta__} {} @@ -107,8 +111,12 @@ public: return inner_.template get_dim_size(); } + const data& operator()(const data, Encode>& index)const{ + return inner_.at(index); + } + data& operator()(const data, Encode>& index){ - return inner_(index); + return inner_.at(index); } }; } -- cgit v1.2.3