Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gabime/spdlog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'include/spdlog/spdlog.h')
-rw-r--r--include/spdlog/spdlog.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/spdlog/spdlog.h b/include/spdlog/spdlog.h
index fd9a1d27..a70a7aa7 100644
--- a/include/spdlog/spdlog.h
+++ b/include/spdlog/spdlog.h
@@ -103,9 +103,9 @@ inline void flush_every(std::chrono::seconds interval)
}
// Set global error handler
-inline void set_error_handler(log_err_handler handler)
+inline void set_error_handler(void (*handler)(const std::string &msg))
{
- details::registry::instance().set_error_handler(std::move(handler));
+ details::registry::instance().set_error_handler(handler);
}
// Register the given logger with the given name