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

android - Pass an Serializable object in AIDL -

php - Improving script execution time -

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