Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17825

C++ Overloading Question

$
0
0
Hi guys. I recently studied C / C++ Coding Standards book. //Function overloading must be avoided in most cases //Use: const Anim* GetAnimByIndex(const int index) const; const Anim* GetAnimByName(const char* name) const; //Instead of: const Anim* GetAnim(const int index) const; const Anim* GetAnim(const char* name) const; I found this, and I'm really curious why function overloading must be avoided in most cases. I want to hear exact answer about it. Thx.

Viewing all articles
Browse latest Browse all 17825

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>