Skip to content

Commit

Permalink
MRA: mark input to print task as const
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Schuchart <[email protected]>
  • Loading branch information
devreal committed Sep 10, 2024
1 parent c8edfb1 commit 4a18cf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/madness/mra-device/mrattg-device.cc
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ auto make_reconstruct(
static std::mutex printer_guard;
template <typename keyT, typename valueT>
auto make_printer(const ttg::Edge<keyT, valueT>& 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<std::mutex> obolus(printer_guard);
std::cout << str << " (" << key << "," << value << ")" << std::endl;
Expand Down

0 comments on commit 4a18cf6

Please sign in to comment.