From 4b7841a40ffc0cdc5a2c15b40e07307692f1c6b8 Mon Sep 17 00:00:00 2001 From: James Sharpe Date: Mon, 29 Jul 2024 12:47:54 +0000 Subject: [PATCH] Fix compile error for c++20 --- include/tiny-cuda-nn/common_host.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/tiny-cuda-nn/common_host.h b/include/tiny-cuda-nn/common_host.h index c2660ef8..a5bd7739 100644 --- a/include/tiny-cuda-nn/common_host.h +++ b/include/tiny-cuda-nn/common_host.h @@ -56,7 +56,7 @@ void set_log_callback(const std::function template void log(LogSeverity severity, const std::string& msg, Ts&&... args) { - log_callback()(severity, fmt::format(msg, std::forward(args)...)); + log_callback()(severity, fmt::format(fmt::runtime(msg), std::forward(args)...)); } template void log_info(const std::string& msg, Ts&&... args) { log(LogSeverity::Info, msg, std::forward(args)...); }