From 0cd22f69512a3751dc2717c8d4a7194a0143f623 Mon Sep 17 00:00:00 2001 From: "Michael A. Lively" Date: Fri, 8 Nov 2024 14:02:31 -0700 Subject: [PATCH] Change `auto` to explciit type in Log.hpp method declarations. This change is required to build Tools on Windows with MSVC19 for use with ACEtk. --- src/tools/Log.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tools/Log.hpp b/src/tools/Log.hpp index 521f0d2..0c4ace9 100644 --- a/src/tools/Log.hpp +++ b/src/tools/Log.hpp @@ -16,9 +16,9 @@ namespace tools { */ class Log { - static auto initialize_logger() { + static std::shared_ptr initialize_logger() { - auto instance = spdlog::stdout_color_st( "njoy" ); + std::shared_ptr instance = spdlog::stdout_color_st( "njoy" ); instance->set_pattern( "[%^%l%$] %v" ); #ifndef NDEBUG instance->set_level( spdlog::level::debug ); @@ -26,9 +26,9 @@ class Log { return instance; } - static auto& logger() { + static std::shared_ptr& logger() { - static auto instance = initialize_logger(); + static std::shared_ptr instance = initialize_logger(); return instance; }