Skip to content

Commit

Permalink
Change auto to explicit type declarations
Browse files Browse the repository at this point in the history
This change is necessary to build as a dependency of ACEtk on Windows with MSVC19.
  • Loading branch information
lively-michael authored Nov 8, 2024
1 parent e0eb6b4 commit 189f3e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tools/Log.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ namespace tools {
*/
class Log {

static auto initialize_logger() {
static static std::shared_ptr<spdlog::logger> initialize_logger() {

auto instance = spdlog::stdout_color_st( "njoy" );
static std::shared_ptr<spdlog::logger> instance = spdlog::stdout_color_st( "njoy" );
instance->set_pattern( "[%^%l%$] %v" );
#ifndef NDEBUG
instance->set_level( spdlog::level::debug );
#endif
return instance;
}

static auto& logger() {
static static std::shared_ptr<spdlog::logger>& logger() {

static auto instance = initialize_logger();
static static std::shared_ptr<spdlog::logger> instance = initialize_logger();
return instance;
}

Expand Down

0 comments on commit 189f3e7

Please sign in to comment.