如何找到 "using namespace std" 的违规用法?

how to find the offending usage of "using namespace std"?

我尝试使用 -E 预处理文件。我仍然找不到任何

using namespace std;

除了来自各种 boost 包含文件的各种函数范围之外.... 编译器尝试使 std::find 适应我对位于 myNamespace 内的代码的 (myNamespace::)find() 的使用。我知道如何解决这个问题(通过指定我想使用哪个 find() ),但我宁愿找到原因。

根据 the link provided by chris 正常函数(在这种情况下来自 std 命名空间)也可以在没有任何

的情况下找到
using namespace std;

using std::find;

这可以通过将函数名称放在括号中来防止:

(find)(….)

我只知道运算符的这一点,但不知道函数。