add noreturn attribute to templated version of error->one and error->all
This commit is contained in:
@ -29,14 +29,14 @@ class Error : protected Pointers {
|
||||
|
||||
[[noreturn]] void all(const std::string &, int, const std::string &);
|
||||
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...));
|
||||
}
|
||||
|
||||
[[noreturn]] void one(const std::string &, int, const std::string &);
|
||||
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...));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user