Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.



This topic is 6091 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

well if you mean operator overloading, thats used for classes, when you want to use addition symbols to add say a string to another string in your custom string class. also the = operator an be overloaded to allow comparisons and copying of strings etc. that help at all?

Share this post

Link to post
Share on other sites
If we''re talking overloading functions, you can bet I use it =)

Here''s a common example for a graphics library:
(presudo code)
void DrawRect(CRGB rgb, CRect rect);
void DrawRect(int r, int g, int b, int x1, int y1, int x2, int y2);

"So much fun, so little time."
~Michael Sikora

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!