From a0d2187d8fcc5bc772cbf57f7ee6712403f23c9d Mon Sep 17 00:00:00 2001 From: darallium <46854880+darallium@users.noreply.github.com> Date: Fri, 26 Apr 2024 03:26:08 +0900 Subject: [PATCH 1/2] README.md has include missing (#3066) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index ffb6da30..a61dc036 100644 --- a/README.md +++ b/README.md @@ -273,6 +273,7 @@ void async_example() --- #### Asynchronous logger with multi sinks ```c++ +#include "spdlog/async.h" #include "spdlog/sinks/stdout_color_sinks.h" #include "spdlog/sinks/rotating_file_sink.h" From b7e0e2c237e24582ceb8db6d2ed26ae4ead08506 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Fri, 26 Apr 2024 00:04:00 +0300 Subject: [PATCH 2/2] Fix #3073 --- include/spdlog/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/common.h b/include/spdlog/common.h index 1269c14a..26d3708e 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -319,7 +319,7 @@ struct source_loc { line{line_in}, funcname{funcname_in} {} - SPDLOG_CONSTEXPR bool empty() const SPDLOG_NOEXCEPT { return line == 0; } + SPDLOG_CONSTEXPR bool empty() const SPDLOG_NOEXCEPT { return line <= 0; } const char *filename{nullptr}; int line{0}; const char *funcname{nullptr};