[关闭]
@StarSky 2017-06-29T02:37:57.000000Z 字数 444 阅读 425

2017-06-28 Do or not "using namespace std"

工作日记 C++


today, I reviewed the code and found my colleague had add #include <vector> in a commonUtil. Asually, I only use using namespace std; and It works well, so I asked him why and search by google.
It seems that It's a obsolete coding rule, but not necessary all the way.

ref:
http://www.cplusplus.com/forum/beginner/49748/
https://stackoverflow.com/questions/1452721/why-is-using-namespace-std-considered-bad-practice
https://www.zhihu.com/question/26911239

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注