Any plan on the C++20 module support?

Hello,

The interoperability documentation explicitly states that Swift cannot currently import C++20 modules.

With Xcode now defaulting to C++20, we were curious about the plans for C++20 module support. Could the working group share any information on the current status or future roadmap for this feature?

Thank you.

1 Like

We don’t currently have concrete plans to support C++20 modules in Swift, no.

Are you considering using C++20 modules in your codebase? Is there a particular feature you’re going after that Clang modules don’t provide?

Thank you for your answer.
We haven’t supported C++ 20 modules yet but we already used some C++ 20 features that are not supported by Swift/C++ interoperability. I wonder if we should refactor our code to avoid using them.

Is there a bug to keep track of the latest status of other C++ features (e.g. “concepts“ introduced in C++ 20) other than this document?