From 4b17c930bea397964337b5a901b0a9a9c0177d76 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Thu, 29 Feb 2024 13:18:25 +0100 Subject: codec: Some issues with Array and error_or --- modules/codec/c++/data.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/codec/c++/data.hpp b/modules/codec/c++/data.hpp index aabcde6..b217a5a 100644 --- a/modules/codec/c++/data.hpp +++ b/modules/codec/c++/data.hpp @@ -196,8 +196,12 @@ class data, encode::Native> { return s; } public: - data(){ - std::fill(dims_.begin(), dims_.end(), 0u); + data(), + value_{} + { + for(auto& iter : dims_){ + iter = 0u; + } } SAW_DEFAULT_COPY(data); -- cgit v1.2.3