0

How many types of namespace are there in c++

29th Nov 2017, 8:31 AM
Richmond Owusu Wiafe
Richmond Owusu Wiafe - avatar
2 Answers
0
In fact, as much as necessary. But I do not advise you to use more than 2 connected namespace in large projects, because then it will be difficult to debug problems.
29th Nov 2017, 8:40 AM
stKhaDgar
stKhaDgar - avatar
0
A banal example: suppose, you use only the standard library and boost, so you decided to write everywhere: using namespace std; using namespace boost; ...and now there is a new version of the standard library, in which many classes are transferred from boost. And suddenly your code no longer compiles. Draw conclusions, bro)
29th Nov 2017, 8:44 AM
stKhaDgar
stKhaDgar - avatar