Skip to content

Commit 0258fbd

Browse files
committed
Merge branch 'main' into 'develop'
Fix building with MSVC on Windows See merge request njoy/tools!7
2 parents 74faab0 + 0cd22f6 commit 0258fbd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/tools/Log.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@ namespace tools {
1616
*/
1717
class Log {
1818

19-
static auto initialize_logger() {
19+
static std::shared_ptr<spdlog::logger> initialize_logger() {
2020

21-
auto instance = spdlog::stdout_color_st( "njoy" );
21+
std::shared_ptr<spdlog::logger> instance = spdlog::stdout_color_st( "njoy" );
2222
instance->set_pattern( "[%^%l%$] %v" );
2323
#ifndef NDEBUG
2424
instance->set_level( spdlog::level::debug );
2525
#endif
2626
return instance;
2727
}
2828

29-
static auto& logger() {
29+
static std::shared_ptr<spdlog::logger>& logger() {
3030

31-
static auto instance = initialize_logger();
31+
static std::shared_ptr<spdlog::logger> instance = initialize_logger();
3232
return instance;
3333
}
3434

0 commit comments

Comments
 (0)