Risk of using a namespace

Inside of a code library there may be multiple instances of the same code, like “cout” or “print”. While using a namespace it may not be obvious to the compiler to which particular namespace we are referring and could throw errors as well as leave us scratching our heads and contemplating our life decisions that led to this very frustrating moment.

Privacy & Terms