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:
authorgabime <gmelman1@gmail.com>2019-04-05 23:05:46 +0300
committergabime <gmelman1@gmail.com>2019-04-05 23:05:46 +0300
commit17f9cdd401d6eeb9a6d093b41e39391538ba3919 (patch)
treee307a18d8e70e9305697db4df202c668ef58a957 /include/spdlog/spdlog.h
parent156b856a809c7f8c80b1129a09730c48720dc1d7 (diff)
static lib wip
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