Good c++ coding style for global functions? -
i have global functions has same name member methods. both used in same scope. way distinguish them? adding prefix 'g' conventional? know conventional global variable not sure global functions.
you don't need change function name use them.
comments say, can qualify function e.g.
void foo() { } class bar { void foo() { } void wibble() { ::foo(); } };
::
means in global scope
Comments
Post a Comment