Skip to content

Commit

Permalink
Merge pull request #460 from jsharpe/fmt_runtime
Browse files Browse the repository at this point in the history
Fix compile error for c++20
  • Loading branch information
Tom94 authored Jul 31, 2024
2 parents b3473c8 + 4b7841a commit daf9628
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 daf9628

Please sign in to comment.