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
104
Upvotes
r/cpp • u/holyblackcat • Mar 09 '26
View all comments
Show parent comment
1
u/38thTimesACharm Mar 09 '26
Regarding the MSVC failure, are you passing the
/internalPartitionflag? This is necessary to get standard-compliant behavior for module implementation (non-interface) partitions.The standard quote you linked here only says module interface partitions must contribute to the exported interface, so I think what you're trying to do should be okay. But MSVC requires a flag for it, their default behavior is nonstandard.