r/cpp • soup • Mar 10 '26

Dynamic Modules

https://mwasplund.github.io/blog/2026/03/09/dynamic-modules
8 Upvotes

23 comments sorted by

View all comments

Show parent comment

1

u/kamrann_ Mar 11 '26

I don't have conclusive standard text confirming this off-hand, but yes I believe so. Pretty sure what you refer to is talking about the state of the translation unit after preprocessing - after all, the concept of a 'declaration' isn't even meaningful at the point that #includes are processed.

Honestly, cpp reference (which is I guess the source of your quote) just doesn't suffice for the details, you really have to study the standard. Equivalent in this case being https://eel.is/c++draft/module.import