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

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -