0

Why using namespace std is essential?

12th Oct 2018, 12:30 PM
prakhar pandey
prakhar pandey - avatar
2 Respuestas
+ 1
It's not essential, in fact it's highly discouraged in the C++ community. That's because standard namespace has A LOT of things in it which means that if you include the namespace there can be possible name conflicts.
12th Oct 2018, 12:37 PM
TurtleShell
TurtleShell - avatar
+ 2
The practice of using namespace std was already discussed here: https://www.sololearn.com/Discuss/294730/?ref=app In my opinion, you shouldn't be using namespace std because of naming conflicts. And really, namespaces themselves were used to avoid naming conflicts. Here are some examples that could show you when something like that could happen: https://www.sololearn.com/Discuss/392399/?ref=app
12th Oct 2018, 1:35 PM
qwerty
qwerty - avatar