diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-05-29 13:35:01 +0200 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-05-29 13:35:01 +0200 |
| commit | 4a667474433f18c60facd556daa5b73c6e651f4e (patch) | |
| tree | c6597f3cc707ba50b8f990b2b12f2b821334d381 /modules/codec/c++ | |
| parent | a3d75d12326bde03ff6c618f828c8e64adb6db03 (diff) | |
| download | forstio-forstio-master.tar.gz | |
Diffstat (limited to 'modules/codec/c++')
| -rw-r--r-- | modules/codec/c++/data_math.hpp | 2 |
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>(); |
