You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using this library for the first time. I'm attempting to integrate it into my project using CMake FetchContent. When compiling on Windows, I consistently encounter the error C2370. After consulting the CI logs, I found that the error occurs when using C++17, but it compiles successfully with C++20. As a workaround, I changed the C++ version in the code to cxx_std_20, and it worked fine.
Thanks for your response. I'm also not using unifex in MSVC C++17, so could we consider raising the C++ standard to C++20 when detecting the use of MSVC?
So it's not just me then, a shame :(
Out of 108 projects, only 60 actually built. The others require, as you said, c++20.
Thanks for opening this issue
I am using this library for the first time. I'm attempting to integrate it into my project using CMake
FetchContent
. When compiling on Windows, I consistently encounter theerror C2370
. After consulting the CI logs, I found that the error occurs when using C++17, but it compiles successfully with C++20. As a workaround, I changed the C++ version in the code tocxx_std_20
, and it worked fine.libunifex/source/CMakeLists.txt
Line 79 in e14d5ca
Could you please address the compilation error when using C++17, or consider setting the default C++ version to C++20 when using MSVC?
The text was updated successfully, but these errors were encountered: