Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

about c++20 #62

Open
kahotv opened this issue Feb 11, 2025 · 0 comments
Open

about c++20 #62

kahotv opened this issue Feb 11, 2025 · 0 comments

Comments

@kahotv
Copy link

kahotv commented Feb 11, 2025

#46

In MSVC, the __cplusplus macro cannot be used directly. You need to manually add the /Zc:__cplusplus option, otherwise, __cplusplus will always be 199711L. I found the method used by the ASIO library for this:

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant