Any tips on using spdlog in C++23 with modules feature? #3501
Answered
by
tt4g
qiyuewuyi2333
asked this question in
Q&A
-
|
I'm refactoring my renderer proj to use C++ modules. Here I got some confusion about how to use spdlog with that. I got a lot of compilation error, such as below: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\include\vector(435): error C2572: 'std::vector': redefinition of default argument: parameter 1
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\include\vector(436): note: see declaration of 'std::vector'
C:\Users\qiyuewuyi\Dev\HuanEngine\Source\Runtime\Log\Private\LogSystem.cppm(80): error C2668: 'std::make_shared': ambiguous call to overloaded functionAny guides about that? For example, your self defined .cppm file for spdlog etc. |
Beta Was this translation helpful? Give feedback.
Answered by
tt4g
Dec 14, 2025
Replies: 1 comment 2 replies
-
|
spdlog v1 was developed for C++11 and does not support C++20 module features. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If supporting C++ modules requires breaking changes the v1 API, adding it would be difficult.
It may be supported in v2 or later.