From 17f9cdd401d6eeb9a6d093b41e39391538ba3919 Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 5 Apr 2019 23:05:46 +0300 Subject: static lib wip --- include/spdlog/spdlog.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/spdlog/spdlog.h') 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 -- cgit v1.2.3