add noreturn attribute to templated version of error->one and error->all

This commit is contained in:
Axel Kohlmeyer
2024-08-31 00:57:59 -04:00
parent 35c36bb16e
commit 70b8b987ca

View File

@ -29,14 +29,14 @@ class Error : protected Pointers {
[[noreturn]] void all(const std::string &, int, const std::string &); [[noreturn]] void all(const std::string &, int, const std::string &);
template <typename... Args> template <typename... Args>
void all(const std::string &file, int line, const std::string &format, Args &&...args) [[noreturn]] void all(const std::string &file, int line, const std::string &format, Args &&...args)
{ {
_all(file, line, format, fmt::make_format_args(args...)); _all(file, line, format, fmt::make_format_args(args...));
} }
[[noreturn]] void one(const std::string &, int, const std::string &); [[noreturn]] void one(const std::string &, int, const std::string &);
template <typename... Args> template <typename... Args>
void one(const std::string &file, int line, const std::string &format, Args &&...args) [[noreturn]] void one(const std::string &file, int line, const std::string &format, Args &&...args)
{ {
_one(file, line, format, fmt::make_format_args(args...)); _one(file, line, format, fmt::make_format_args(args...));
} }