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++ MT-multithreading and servers » Core/Inet.h -- unneeded "using namespace Upp"
Re: Core/Inet.h -- unneeded "using namespace Upp" [message #50283 is a reply to message #50270] Wed, 12 September 2018 09:20 Go to previous message
mdelfede is currently offline  mdelfede
Messages: 1310
Registered: September 2007
Ultimate Contributor
Something as idiot as this one Very Happy

// ------------------------------------------------------------------
// IsEqual : Returns Standard_True if two integers are equal
// ------------------------------------------------------------------
inline Standard_Boolean IsEqual (const Standard_Integer theOne,
                                 const Standard_Integer theTwo)
{
  return theOne == theTwo;
}


I don't remember if this was the offending one, but that code is FULL with IsEqual inlines.
Even if I put the using namespace Upp directive AFTER all the includes of that library, usage in templates bring name clash.
I had to remove ALL namespace Upp usages and build a big include file that uses the Upp classes/functions I need.
In GCC it seems that the problem is not there.
BTW, when I use BLITZ the problem is there even on GCC, but that is normal.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Windows authenticated web page load
Next Topic: Web page in U++ under IIS
Goto Forum:
  


Current Time: Mon Aug 25 20:07:13 CEST 2025

Total time taken to generate the page: 0.00431 seconds