Well, this is a know nuisance.
How about instead of injecting “using namespace std;
”, you inject a precisely described set of “using std::vector;
” and “using std::friends;
” (and so on for everything you need, and only for that).
BTW. A similar unsolved deficiency: “MakeClass and std::”