diff --git a/src/console_func.h b/src/console_func.h --- a/src/console_func.h +++ b/src/console_func.h @@ -34,16 +34,15 @@ void IConsolePrint(TextColour colour_cod * @param format_string The formatting string to tell what to do with the remaining arguments. * @param first_arg The first argument to the format. * @param other_args The other arguments to the format. - * @tparam T The type of formatting parameter. * @tparam A The type of the first argument. * @tparam Args The types of the other arguments. */ -template -inline void IConsolePrint(TextColour colour_code, const T &format, A first_arg, Args&&... other_args) +template +inline void IConsolePrint(TextColour colour_code, fmt::format_string format, A first_arg, Args&&... other_args) { /* The separate first_arg argument is added to aid overloading. * Otherwise the calls that do no need formatting will still use this function. */ - IConsolePrint(colour_code, fmt::format(format, first_arg, other_args...)); + IConsolePrint(colour_code, fmt::format(format, std::forward(first_arg), std::forward(other_args)...)); } /* Parser */