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

HXCPP_CXX_STANDARD Define #1124

Open
Aidan63 opened this issue Jun 27, 2024 · 0 comments
Open

HXCPP_CXX_STANDARD Define #1124

Aidan63 opened this issue Jun 27, 2024 · 0 comments

Comments

@Aidan63
Copy link
Contributor

Aidan63 commented Jun 27, 2024

This has been on my list for a while, but with the C++17 define merge which recently went through it seems like a good time to bring it up.

Instead of having an ever growing list of defines for all the C++ versions I think having a define allowing you to specify the version would be better. E.g. -D HXCPP_CXX_STANDARD=14 to use C++14. One downside to this is that hxcpp xml only allows || in its if and unless tags, might need to add general comparisons to make it really useful.

<section if="${HXCPP_CXX_STANDARD} >= 17">
</section>
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