Skip to content

Commit 80f2583

Browse files
committed
cx_utils: fix wrong args in format
1 parent 0416387 commit 80f2583

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cx_utils/include/cx_utils/format.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ namespace cx
3535
template <typename... Args>
3636
inline std::string format(fmt::format_string<Args...> fmt, Args &&... args)
3737
{
38-
return fmt::format(fmt_str, std::forward<Args>(args)...);
38+
return fmt::format(fmt, std::forward<Args>(args)...);
3939
}
4040
} // namespace cx
4141
#elif __has_include(<fmt/format.h>)
@@ -45,7 +45,7 @@ namespace cx
4545
template <typename... Args>
4646
inline std::string format(fmt::format_string<Args...> fmt, Args &&... args)
4747
{
48-
return fmt::format(fmt_str, std::forward<Args>(args)...);
48+
return fmt::format(fmt, std::forward<Args>(args)...);
4949
}
5050
} // namespace cx
5151
#else

0 commit comments

Comments
 (0)