Archived

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

Overloading...

This topic is 5876 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