Can I undo the effect of “using namespace” in C++?

后端 未结 5 575
忘掉有多难
忘掉有多难 2021-01-03 18:16

With using namespace I make the whole contents of that namespace directly visible without using the namespace qualifier. This can cause problems if using

5条回答
  •  离开以前
    2021-01-03 19:06

    Not to my knowledge... But as a rule I only use "using namespace" in .cpp files.

提交回复
热议问题