Log: add std::exception_ptr overloads

This commit is contained in:
Max Kellermann
2016-09-09 19:09:40 +02:00
parent 100308db02
commit 553365b942
2 changed files with 53 additions and 3 deletions

View File

@@ -23,9 +23,7 @@
#include "LogLevel.hxx"
#include "Compiler.h"
namespace std {
class exception;
}
#include <exception>
class Error;
class Domain;
@@ -93,6 +91,16 @@ gcc_printf(2,3)
void
FormatError(const std::exception &e, const char *fmt, ...);
void
LogError(const std::exception_ptr &ep);
void
LogError(const std::exception_ptr &ep, const char *msg);
gcc_printf(2,3)
void
FormatError(const std::exception_ptr &ep, const char *fmt, ...);
gcc_printf(2,3)
void
FormatError(const Domain &domain, const char *fmt, ...);