From ee2dc56342a67eaceff1a803d4b72e7410f27fcc Mon Sep 17 00:00:00 2001 From: vhinger Date: Tue, 24 Feb 2026 19:56:28 +0100 Subject: [PATCH] Stylistic rewrite to make read-only intent clear --- include/aare/Remap.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/aare/Remap.hpp b/include/aare/Remap.hpp index a6d0960..9c4ff50 100644 --- a/include/aare/Remap.hpp +++ b/include/aare/Remap.hpp @@ -209,7 +209,9 @@ void ApplyRemap(aare::NDView const &input, auto flat_index = order_map(row, col); if (flat_index >= 0 && static_cast(flat_index) < input.size()) { - output(row, col) = static_cast(input[flat_index]); + T const &value = input[flat_index]; + output(row, col) = value; + // output(row, col) = static_cast(input[flat_index]); } else { output(row, col) = static_cast(0); // or nan? }