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
3
u/holyblackcat Mar 10 '26
If both types are under your control, you could
extern "C++"them to allow forward declarations. (And if they aren't both under your control, how are they referring to each other circularly. :P)This isn't ideal, but seems workable.