summaryrefslogtreecommitdiff
path: root/modules/codec/c++
diff options
context:
space:
mode:
Diffstat (limited to 'modules/codec/c++')
-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>();