r/cpp • u/cpppm MSVC Game Dev PM • Sep 14 '20
Standard C++20 Modules support with MSVC in Visual Studio 2019 version 16.8 | C++ Team Blog
https://devblogs.microsoft.com/cppblog/standard-c20-modules-support-with-msvc-in-visual-studio-2019-version-16-8/
254
Upvotes
1
u/atimholt Sep 15 '20
—Though I sure wouldn't mind something that allows you to choose/“whitelist” what symbols you're importing, similar to Python's “
import [library] as [whatever identifier you want]”, which combinesimportwithusingwhile allowing post hoc control of what you actually want to enter your translation unit.That said, the need for such a facility is incredibly small. As much as it's possible to get collision between top-level namespace names, I've never once heard anyone actually complain about it. I guess if it did happen to you, you could wrap it in something like: