The risk of the "using namespace blahblah;" statement

When using the “using namespace” statement, this can have its risks. The risk is that if a library has more than one namespace, or we have included two libraries, and these namespaces and/or libraries have the same function, we will run into a namespace clash, which means the computer won’t know which one to use and will run into an error of ambiguity.

Privacy & Terms