Moved spdlog::make_unique to spdlog::details::make_unique and prevent T to be array

This commit is contained in:
gabime
2018-09-26 23:48:36 +03:00
parent e3a66473b2
commit e8dae26176
5 changed files with 47 additions and 43 deletions

View File

@@ -113,7 +113,7 @@ public:
{
std::lock_guard<std::mutex> lock(flusher_mutex_);
std::function<void()> clbk = std::bind(&registry::flush_all, this);
periodic_flusher_ = spdlog::make_unique<periodic_worker>(clbk, interval);
periodic_flusher_ = details::make_unique<periodic_worker>(clbk, interval);
}
void set_error_handler(log_err_handler handler)