-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Potential collision with C++20 module
keyword
#1593
Comments
I guess this may not contribute much, but future proofing the library at least should be simple enough: class module_ { ... };
#if !defined(PYBIND11_CPP20)
using module = module_;
#endif |
This makes sense to me :) Note that there's a typo in your post above ( |
Thanks! And oops! Corrected. |
Closing this (see #1639). |
Hi everyone,
I just wanted to bring to your attention that the name
module
is likely to become a keyword in C++20, which I believe would cause a collision withpybind11::module
. Maybe you already know this, maybe not, but I thought I'd better write something here just in case.Here is an interesting discussion from Vulkan facing similar problems: KhronosGroup/Vulkan-Docs#568
Related links:
https://www.reddit.com/r/cpp/comments/4b9qru/what_exactly_is_the_proposed_module_system_how/
https://clang.llvm.org/docs/Modules.html
The text was updated successfully, but these errors were encountered: