-
-
Notifications
You must be signed in to change notification settings - Fork 911
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
entt fails to compile in C++20 when used inside a module interface file #1216
Comments
It seems an issue with the module support of your compiler rather than a problem in EnTT. Am I wrong? |
I am unsure, possibly. Other libraries that are wrapped this way had no issues, this obviously does not mean that it's not a compiler issue. |
Uhm, any chance that you can try the same with the clang compiler in VS? It's available out of the box already. |
Right, I am just using the cl compiler and using external CMake to build the project, but I'll spin it up with clang-cl and report back soon. |
Regular clang does build the project as expected. This may be an MSVC issue then. clang-cl does not build it, however. |
The main problem is that I wouldn't even know how to fix it if the problem is a specific compiler on a feature that is still not widespread. I think that calling MSFT on the topic is the best move actually. |
I happen to |
Regular Clang does build it. And the header itself was not causing issues. I was able to use |
I tried to wrap some entt functionality for a project in C++20 modules, however when
entt::registry
is used in a module interface the compilation fails in this way:This example error is produced by this code:
The code compiles perfectly fine when the exact same class is copied to a traditional C++ file, like on top of the main file as an example.
The text was updated successfully, but these errors were encountered: