Skip to content

Commit

Permalink
Update comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
teo-tsirpanis committed Sep 4, 2024
1 parent fdf2f6f commit c4e6fd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tiledb/common/log_duration_instrument.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ class LogDurationInstrument {
template <typename... Args>
LogDurationInstrument(
Logger* logger,
// fmt::format_string<Args...> fmt,
// Ideally this would be a fmt::format_string<Args...> but it fails with
// weird constexpr-related compile errors.
const std::string& fmt,
Args&&... args) {
assert(logger);

if (logger->should_log(DefaultLevel)) {
logger_ = logger;
// event_name_ = fmt::format(fmt, std::forward<Args>(args)...);
// Forwarding args in make_format_args causes an error.
event_name_ = fmt::vformat(fmt, fmt::make_format_args(args...));
start_ = std::chrono::high_resolution_clock::now();
Expand Down

0 comments on commit c4e6fd7

Please sign in to comment.