diff --git a/include/spdlog/details/logger_impl.h b/include/spdlog/details/logger_impl.h index 4874e939..a5319fe2 100644 --- a/include/spdlog/details/logger_impl.h +++ b/include/spdlog/details/logger_impl.h @@ -31,7 +31,8 @@ inline spdlog::logger::logger(const std::string& logger_name, sinks_init_list si // ctor with single sink inline spdlog::logger::logger(const std::string& logger_name, spdlog::sink_ptr single_sink) : - logger(logger_name, { + logger(logger_name, +{ single_sink }) {} diff --git a/tests/format.cpp b/tests/format.cpp index 26bff6f2..19d6bc52 100644 --- a/tests/format.cpp +++ b/tests/format.cpp @@ -43,7 +43,7 @@ TEST_CASE("basic_logging ", "[basic_logging]") TEST_CASE("log_levels", "[log_levels]") { REQUIRE(log_info("Hello", spdlog::level::err) == ""); - REQUIRE(log_info("Hello", spdlog::level::critical) == ""); + REQUIRE(log_info("Hello", spdlog::level::critical) == ""); REQUIRE(log_info("Hello", spdlog::level::info) == "Hello"); REQUIRE(log_info("Hello", spdlog::level::debug) == "Hello"); REQUIRE(log_info("Hello", spdlog::level::trace) == "Hello");