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)...); }