Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » namespace upp
Re: namespace upp [message #1428 is a reply to message #1427] Fri, 03 March 2006 18:18 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
am_upp wrote on Fri, 03 March 2006 12:03

I'm planning to use U++ together with another class lib. But I fear that I will get name clashes because the other library also defines classes named String and Point etc.

Putting all U++ symbols into a namespace (e.g. "namespace upp {..}) would avoid this kind of problems.

Good idea?

Andreas

PS: I could also blame the authors of other class lib for not using namespace. But this lib has been designed before namespaces were introduced to C++ (it's very old) and the class lib is no longer supported.


Well, I am glad somebody opens this topic.

To tell the truth, we were considering "upp" namaspecs many times over th years, but always came to conclusion that the only "benefit" it would have would be adding "using upp;" into all sources...

At the times of VC6.0 (which are now gone for good), there was also the problem that some of our template techniques make compiler even more confused.. (no koening lookup available).

Therefore we have deferred this until first problems appear Smile Which seems to be now....

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: opengl & tekstures
Next Topic: Geom package
Goto Forum:
  


Current Time: Sun Jun 02 13:14:22 CEST 2024

Total time taken to generate the page: 0.00891 seconds