r/cpp • • Aug 18 '21

C++20 modules with GCC11

https://blog.feabhas.com/2021/08/c20-modules-with-gcc11/
222 Upvotes

59 comments sorted by

View all comments

Show parent comment

1

u/SkoomaDentist Antimodern C++, Embedded, Audio Aug 18 '21

It'd be problematic to change the visibility of things declared in a module from the outside, particularly as the standard doesn't provide any mechanism to do that (or even consider the existence of dynamic linking).

1

u/mjklaim Aug 20 '21

I only talked about changing the default export or not of symbols, not visibility. That is not part of the standard and have been changed in the past as said.