Skip to content

Commit 39a564a

Browse files
authored
Accept universal reference in PrintAndClearLogQueue (#30)
1 parent 0e41e7b commit 39a564a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/rtlog/rtlog.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ class Logger {
238238
* @return int The number of log messages that were processed and printed.
239239
*/
240240
template <typename PrintLogFn>
241-
int PrintAndClearLogQueue(PrintLogFn &printLogFn) {
241+
int PrintAndClearLogQueue(PrintLogFn &&printLogFn) {
242242
int numProcessed = 0;
243243

244244
InternalLogData value;

0 commit comments

Comments
 (0)