diff --git a/src/spdlog.cpp b/src/spdlog.cpp index b3cf0b3c..f6047847 100644 --- a/src/spdlog.cpp +++ b/src/spdlog.cpp @@ -15,7 +15,7 @@ namespace spdlog { static std::shared_ptr s_context = #ifndef SPDLOG_DISABLE_GLOBAL_LOGGER - std::make_unique<details::context>(std::make_unique<logger>("", std::make_unique<sinks::stdout_color_sink_mt>())); + std::make_unique<details::context>(std::make_unique<logger>(std::string(), std::make_unique<sinks::stdout_color_sink_mt>())); #else std::make_unique<details::context>(); // empty context #endif