Namespace and its risk

example: using namespace std
If you have two #includes in your cpp file and both of them have a namespace that is equally named, for example if both #includes have a namespace called ‘std’ then if you do ‘using namespace std’ then the cpp will not undrestad witch std you want to use, the one in for example iostream or something else.
:slight_smile:

Privacy & Terms