summaryrefslogtreecommitdiff
path: root/modules/codec/c++/data.hpp
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2024-02-29 13:18:25 +0100
committerClaudius "keldu" Holeksa <mail@keldu.de>2024-02-29 13:18:25 +0100
commit4b17c930bea397964337b5a901b0a9a9c0177d76 (patch)
tree7cb7fa9678a16507585d20835dc0c9c2339e3e05 /modules/codec/c++/data.hpp
parentfea651acf01608fc4f18839f9e989d1e48e2d6d3 (diff)
codec: Some issues with Array and error_or
Diffstat (limited to 'modules/codec/c++/data.hpp')
-rw-r--r--modules/codec/c++/data.hpp8
1 files changed, 6 insertions, 2 deletions
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<schema::Array<T,Dim>, 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);