|
|
|
|
|
by nemetroid
2575 days ago
|
|
While I agree with the general point of using best practices in code samples, the Cpp Core Guidelines actually encourage[0] using using namespace std;
for std specifically, giving the reasoning that:> sometimes a namespace is so fundamental and prevalent in a code base, that consistent qualification would be verbose and distracting. I also work mainly in C++, and personally I prefer using it, together with -Wshadow to catch possible issues. 0: https://github.com/isocpp/CppCoreGuidelines/blob/master/CppC... |
|