namespaces - C++ "::" without class name -


this question has answer here:

i came across following code structure in c++:

uint32_t aclass::action(....) { ..       status = ::action(...); .. } 

i not sure ::action() means. class belongs to? note: argument list of ::action(...) different aclass::action(...).

the leading :: means action here refers non-member function in global namespace, instead of referring aclass::action in current namespace.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -