Home » Developing U++ » U++ Developers corner » How to manage UPP namespace
How to manage UPP namespace [message #43084] |
Sat, 03 May 2014 23:22 |
Didier
Messages: 680 Registered: November 2008 Location: France
|
Contributor |
|
|
This is a problem on which I stumble regularly.
Some packages are inside UPP namespace, some have they're own namespace, some don't have any namespace at all and some have 'using namespace Upp;' in they're headers !!
This leads to name clashes and ambiguous problems when using some packages or when including external resource code.
I think their should be some recommendations on how to correctly manage this (if you wan't you're package to be usable by others of coarse ), like the following:
- always put code inside namespace Upp ( at least for classes meant to be used by other packages )
- Never put 'using namespace xxx;' inside headers
[Updated on: Sat, 03 May 2014 23:24] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Fri May 03 03:46:16 CEST 2024
Total time taken to generate the page: 0.03616 seconds
|