Dont allow including of dup_filter_sink if SPDLOG_NO_DATETIME is defined

This commit is contained in:
gabime 2019-07-05 14:28:03 +03:00
parent ee87aee4dd
commit 717a582085

View File

@ -33,6 +33,11 @@
// [2019-06-25 17:50:56.512] [logger] [info] Skipped 3 duplicate messages..
// [2019-06-25 17:50:56.512] [logger] [info] Different Hello
#ifdef SPDLOG_NO_DATETIME
#error "spdlog::sinks::dup_filter_sink: cannot work when SPDLOG_NO_DATETIME is defined"
#endif
namespace spdlog {
namespace sinks {
template<typename Mutex>