Skip to content

Commit 4b7841a

Browse files
committed
Fix compile error for c++20
1 parent b3473c8 commit 4b7841a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/tiny-cuda-nn/common_host.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void set_log_callback(const std::function<void(LogSeverity, const std::string&)>
5656

5757
template <typename... Ts>
5858
void log(LogSeverity severity, const std::string& msg, Ts&&... args) {
59-
log_callback()(severity, fmt::format(msg, std::forward<Ts>(args)...));
59+
log_callback()(severity, fmt::format(fmt::runtime(msg), std::forward<Ts>(args)...));
6060
}
6161

6262
template <typename... Ts> void log_info(const std::string& msg, Ts&&... args) { log(LogSeverity::Info, msg, std::forward<Ts>(args)...); }

0 commit comments

Comments
 (0)