Merge pull request #1145 from k0zmo/v1.x
Fix compiler and linker errors
This commit is contained in:
commit
161e6fb8fb
@ -14,14 +14,6 @@
|
|||||||
#include <memory>
|
#include <memory>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
template<typename It>
|
|
||||||
SPDLOG_INLINE spdlog::async_logger::async_logger(
|
|
||||||
std::string logger_name, It begin, It end, std::weak_ptr<details::thread_pool> tp, async_overflow_policy overflow_policy)
|
|
||||||
: logger(std::move(logger_name), begin, end)
|
|
||||||
, thread_pool_(std::move(tp))
|
|
||||||
, overflow_policy_(overflow_policy)
|
|
||||||
{}
|
|
||||||
|
|
||||||
SPDLOG_INLINE spdlog::async_logger::async_logger(
|
SPDLOG_INLINE spdlog::async_logger::async_logger(
|
||||||
std::string logger_name, sinks_init_list sinks_list, std::weak_ptr<details::thread_pool> tp, async_overflow_policy overflow_policy)
|
std::string logger_name, sinks_init_list sinks_list, std::weak_ptr<details::thread_pool> tp, async_overflow_policy overflow_policy)
|
||||||
: async_logger(std::move(logger_name), sinks_list.begin(), sinks_list.end(), std::move(tp), overflow_policy)
|
: async_logger(std::move(logger_name), sinks_list.begin(), sinks_list.end(), std::move(tp), overflow_policy)
|
||||||
|
@ -37,7 +37,11 @@ class async_logger final : public std::enable_shared_from_this<async_logger>, pu
|
|||||||
public:
|
public:
|
||||||
template<typename It>
|
template<typename It>
|
||||||
async_logger(std::string logger_name, It begin, It end, std::weak_ptr<details::thread_pool> tp,
|
async_logger(std::string logger_name, It begin, It end, std::weak_ptr<details::thread_pool> tp,
|
||||||
async_overflow_policy overflow_policy = async_overflow_policy::block);
|
async_overflow_policy overflow_policy = async_overflow_policy::block)
|
||||||
|
: logger(std::move(logger_name), begin, end)
|
||||||
|
, thread_pool_(std::move(tp))
|
||||||
|
, overflow_policy_(overflow_policy)
|
||||||
|
{}
|
||||||
|
|
||||||
async_logger(std::string logger_name, sinks_init_list sinks_list, std::weak_ptr<details::thread_pool> tp,
|
async_logger(std::string logger_name, sinks_init_list sinks_list, std::weak_ptr<details::thread_pool> tp,
|
||||||
async_overflow_policy overflow_policy = async_overflow_policy::block);
|
async_overflow_policy overflow_policy = async_overflow_policy::block);
|
||||||
|
@ -41,6 +41,6 @@ protected:
|
|||||||
} // namespace sinks
|
} // namespace sinks
|
||||||
} // namespace spdlog
|
} // namespace spdlog
|
||||||
|
|
||||||
#ifndef SPDLOG_COMPILED_LIB
|
#ifdef SPDLOG_HEADER_ONLY
|
||||||
#include "base_sink-inl.h"
|
#include "base_sink-inl.h"
|
||||||
#endif
|
#endif
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "spdlog/details/console_globals.h"
|
#include "spdlog/details/console_globals.h"
|
||||||
|
#include "spdlog/details/pattern_formatter.h"
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
namespace spdlog {
|
namespace spdlog {
|
||||||
|
Loading…
Reference in New Issue
Block a user