From e4a1582bee9e7d037c41acd56656b8b87125e6e8 Mon Sep 17 00:00:00 2001 From: Chris Apple Date: Mon, 23 Dec 2024 15:49:04 -0700 Subject: [PATCH] Accept universal reference in PrintAndClearLogQueue --- include/rtlog/rtlog.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rtlog/rtlog.h b/include/rtlog/rtlog.h index 348fd44..dcfb269 100644 --- a/include/rtlog/rtlog.h +++ b/include/rtlog/rtlog.h @@ -238,7 +238,7 @@ class Logger { * @return int The number of log messages that were processed and printed. */ template - int PrintAndClearLogQueue(PrintLogFn &printLogFn) { + int PrintAndClearLogQueue(PrintLogFn &&printLogFn) { int numProcessed = 0; InternalLogData value;