namespaces - C++ "::" without class name -
this question has answer here:
- scope resolution operator without scope 6 answers
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
Post a Comment