In my project, I have to use a library whose characters are not in the namespace. Library classes have fairly short and common names, such as Loggerand Reader. I also use some of these names in my own project classes.
Consider a situation where my project symbols are also not replaced by names. The name conflict can be resolved by putting my code in the namespace and distinguishing it with qualified names (for example, ::Loggerand My::Logger), but I would prefer names to be placed in library symbols. Is there a way that I can "force" use library characters in the namespace of my choice?
Secondly, what if I wanted to use two different libraries that defined non-namespaced Logger. Is there any way to avoid namespace conflict in this case?
source
share