From cc25c5d6439e5b84ff2a1f87686c974a75ef430c Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Mon, 9 Feb 2026 13:25:27 +0100 Subject: Adding better constructors --- modules/codec/c++/data_math.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'modules/codec/c++/data_math.hpp') 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_value__) requires (sizeof...(Dims) == 0u): + values_{inner_value__} + {} + + data(const data>& inner_values__) requires (sizeof...(Dims) > 0u): + values_{inner_values__} + {} + data& at(const data, encode::Native>& index){ return values_.at(index); } -- cgit v1.2.3