From 3a23ca275b9fe30a7ef3132fc9c91c4b2ab29f9d Mon Sep 17 00:00:00 2001 From: conrad Date: Sun, 19 Jan 2025 23:52:34 +1000 Subject: [PATCH] const qualifier for unwrap --- include/armadillo_bits/fn_accu.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/armadillo_bits/fn_accu.hpp b/include/armadillo_bits/fn_accu.hpp index 9a3cec42..1354d942 100644 --- a/include/armadillo_bits/fn_accu.hpp +++ b/include/armadillo_bits/fn_accu.hpp @@ -840,7 +840,7 @@ accu(const BaseCube& X) if(is_Cube::stored_type>::value) { - unwrap_cube::stored_type> tmp(P.Q); + const unwrap_cube::stored_type> tmp(P.Q); return arrayops::accumulate(tmp.M.memptr(), tmp.M.n_elem); }