0

What is the compound assignment operator overloading syntax? I cannot find on the web. How can for example overload operator+= ?
I know that it has to be a member function but what has to be its return value? reference?

2
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by Narue
0

>I cannot find on the web.
You didn't look very hard, did you? This is the first hit from google that I got using keywords from your thread title.

Edited by Narue: n/a

0

Sorry, I have found it, but somehow cannot see :)

0

I can't do anything about your eyesight. But it does show an example of how to define the function under the heading "Compound Assignment Operators += -= *=".

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.