summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2026-05-29 13:35:01 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2026-05-29 13:35:01 +0200
commit4a667474433f18c60facd556daa5b73c6e651f4e (patch)
treec6597f3cc707ba50b8f990b2b12f2b821334d381
parenta3d75d12326bde03ff6c618f828c8e64adb6db03 (diff)
downloadforstio-forstio-master.tar.gz
Adding const to element which kinda needs constHEADmasterdev
-rw-r--r--modules/codec/c++/data_math.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/codec/c++/data_math.hpp b/modules/codec/c++/data_math.hpp
index 1a56bd0..48dae91 100644
--- a/modules/codec/c++/data_math.hpp
+++ b/modules/codec/c++/data_math.hpp
@@ -132,7 +132,7 @@ public:
}
template<typename InnerChange>
- data<schema::Tensor<InnerChange, Dims...>, encode::Native> cast_to(){
+ data<schema::Tensor<InnerChange, Dims...>, encode::Native> cast_to() const {
data<schema::Tensor<InnerChange, Dims...>, encode::Native> native_change;
rank_iterator<Dims...>::in_fixed_bounds([&](const data<schema::FixedArray<schema::UInt64, sizeof...(Dims)>, encode::Native>& index) -> error_or<void>{
native_change.at(index) = at(index).template cast_to<InnerChange>();