Patch for removing `using namespace std;` from headers
Notepad++ project is moving to GitHub:
Brought to you by:
donho
While investigating compilation-time-improvements, I noticed a bunch of using namespace std; in header files.
This is a big no-no, so I fixed it. This patch qualifies all uses of std:: functions/variables in headers, and most uses in .cpp files. In .cpp files where there are too many uses of std:: functions/variables, I've inserted a using std::vector; or using std::string; immediately after all the includes.
Could you elaborate on why it is a big no-no?
A multitude of reasons. It's also almost always unnecessary, if just a few types/functions are needed, as for that, we can
using std::vector.Last edit: Alexander Riccio 2015-03-14
Thanx
Yeah, you can get away with it small projects/CS courses, but it's a ticking time bomb anywhere else.
Alexander,
Could you make a souce zip for the merge?
Thank you,
Don