Skip to content

Commit

Permalink
Fix compile error for c++20
Browse files Browse the repository at this point in the history
  • Loading branch information
jsharpe committed Jul 29, 2024
1 parent b3473c8 commit 4b7841a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/tiny-cuda-nn/common_host.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void set_log_callback(const std::function<void(LogSeverity, const std::string&)>

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

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

0 comments on commit 4b7841a

Please sign in to comment.