use make_format_args() instead of make_args_checked() (removed in v9)
This commit is contained in:
24
src/error.h
24
src/error.h
@ -31,31 +31,31 @@ class Error : protected Pointers {
|
||||
void universe_warn(const std::string &, int, const std::string &);
|
||||
|
||||
[[noreturn]] void all(const std::string &, int, const std::string &);
|
||||
template <typename S, typename... Args>
|
||||
void all(const std::string &file, int line, const S &format, Args &&...args)
|
||||
template <typename... Args>
|
||||
void all(const std::string &file, int line, const std::string &format, Args &&...args)
|
||||
{
|
||||
_all(file, line, format, fmt::make_args_checked<Args...>(format, args...));
|
||||
_all(file, line, format, fmt::make_format_args(args...));
|
||||
}
|
||||
|
||||
[[noreturn]] void one(const std::string &, int, const std::string &);
|
||||
template <typename S, typename... Args>
|
||||
void one(const std::string &file, int line, const S &format, Args &&...args)
|
||||
template <typename... Args>
|
||||
void one(const std::string &file, int line, const std::string &format, Args &&...args)
|
||||
{
|
||||
_one(file, line, format, fmt::make_args_checked<Args...>(format, args...));
|
||||
_one(file, line, format, fmt::make_format_args(args...));
|
||||
}
|
||||
|
||||
void warning(const std::string &, int, const std::string &);
|
||||
template <typename S, typename... Args>
|
||||
void warning(const std::string &file, int line, const S &format, Args &&...args)
|
||||
template <typename... Args>
|
||||
void warning(const std::string &file, int line, const std::string &format, Args &&...args)
|
||||
{
|
||||
_warning(file, line, format, fmt::make_args_checked<Args...>(format, args...));
|
||||
_warning(file, line, format, fmt::make_format_args(args...));
|
||||
}
|
||||
|
||||
void message(const std::string &, int, const std::string &);
|
||||
template <typename S, typename... Args>
|
||||
void message(const std::string &file, int line, const S &format, Args &&...args)
|
||||
template <typename... Args>
|
||||
void message(const std::string &file, int line, const std::string &format, Args &&...args)
|
||||
{
|
||||
_message(file, line, format, fmt::make_args_checked<Args...>(format, args...));
|
||||
_message(file, line, format, fmt::make_format_args(args...));
|
||||
}
|
||||
[[noreturn]] void done(int = 0); // 1 would be fully backwards compatible
|
||||
|
||||
|
||||
Reference in New Issue
Block a user