r/cpp • u/holyblackcat • Mar 09 '26
The compilation procedure for C++20 modules
https://holyblackcat.github.io/blog/2026/03/09/compiling-modules.html
103
Upvotes
r/cpp • u/holyblackcat • Mar 09 '26
View all comments
Show parent comment
2
u/sudgy Mar 09 '26
You can still forward declare in modules by wrapping both the original declaration/definition and the forward declaration in
extern "C++"