syntax question

In the line pLoopUnit = ::getUnit(pUnitNode->m_data);, the function getUnit gets called, but I don't know which one gets called, as there's more than one definition (or classes that has a definition for it) in the code I'm reading. So my question is, what does the :: stand for in the above line of code? What does it do? Does it give us a hint on which getUnit gets called?

Thanks!

AeonFlux
Last edited on
It means the one in the global namespace. Usually, a namespace name/class name/whatever goes before the :: but putting nothing there refers to the global namespace.
alright thanks a lot... !

Cheers,

AeonFlux
Topic archived. No new replies allowed.