Link Details

Link 91498 thumbnail
User 290279 avatar

By jamesling
via digcode.com
Published: Jul 01 2008 / 09:10

In general, when you're overloading an operator in your user-defined C++ classes, it's recommended that you adhere to the basic semantics of the corresponding built-in operator. In other words, an overloaded operator has the same side effects on its operands and manifests the same interface as does the corresponding built-in operator. This article focus on how to overload the above operators and explain some guidelines for implementing these operators.
  • 9
  • 0
  • 1080
  • 159

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (9)



Voters Against This Link (0)