Open NickGerleman opened 4 years ago
Will need to do an audit of where we're doing this. Coming up with that index seems like the next step. Solution used in tests: header file that has aliases that is included from cpp. Problem: interaction with PCHs.
We have code today in shared headers that looks like this:
This type of global leakage can lead to confusion of where namespaces are coming from, can leak to customers, and has bitten us in Office before, where incorrect types are silently included. E.g. the wrong IInspectable.
Cppcoreguidelines, which we try to follow explicitly calls this out as something not to do http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rs-using-directive
We should remove this, ensure it's not leaking to customers, and make namespace reduction explicit.