summaryrefslogtreecommitdiff
path: root/modules/codec/c++/data_math.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/codec/c++/data_math.hpp')
-rw-r--r--modules/codec/c++/data_math.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/codec/c++/data_math.hpp b/modules/codec/c++/data_math.hpp
index 86336ad..3c55e37 100644
--- a/modules/codec/c++/data_math.hpp
+++ b/modules/codec/c++/data_math.hpp
@@ -83,6 +83,14 @@ public:
*/
data() = default;
+ data(const data<Inner,encode::Native>& inner_value__) requires (sizeof...(Dims) == 0u):
+ values_{inner_value__}
+ {}
+
+ data(const data<schema::FixedArray<Inner, Dims...>>& inner_values__) requires (sizeof...(Dims) > 0u):
+ values_{inner_values__}
+ {}
+
data<Inner, encode::Native>& at(const data<schema::FixedArray<schema::UInt64, sizeof...(Dims)>, encode::Native>& index){
return values_.at(index);
}