From 4a18cf653bfcf7335815adce78bdf0baf2ee69ce Mon Sep 17 00:00:00 2001 From: Joseph Schuchart Date: Tue, 10 Sep 2024 14:52:24 -0400 Subject: [PATCH] MRA: mark input to print task as const Signed-off-by: Joseph Schuchart --- examples/madness/mra-device/mrattg-device.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/madness/mra-device/mrattg-device.cc b/examples/madness/mra-device/mrattg-device.cc index a62fe844e..75d406d2a 100644 --- a/examples/madness/mra-device/mrattg-device.cc +++ b/examples/madness/mra-device/mrattg-device.cc @@ -338,7 +338,7 @@ auto make_reconstruct( static std::mutex printer_guard; template auto make_printer(const ttg::Edge& in, const char* str = "", const bool doprint=true) { - auto func = [str,doprint](const keyT& key, auto& value, auto& out) { + auto func = [str,doprint](const keyT& key, const auto& value, auto& out) { if (doprint) { std::lock_guard obolus(printer_guard); std::cout << str << " (" << key << "," << value << ")" << std::endl;