Using namespace std with caution

In my experience using std namespace can lead to many problems. Not fully understanding the code and deleting namespace std will cause code to crash. Also using namespace std can is dangerous because you are calling code from a library that uses std and it’s possible to call form other namespaces with the same name.

Privacy & Terms