Opeartor overloading

This is a discussion on Opeartor overloading within the C++ Programming forums, part of the General Programming Boards category; Is it possible to overload the operator *+= such that obj1 *+= obj2; implies that obj1=obj1*(obj1+obj2);...

  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    46

    Red face Opeartor overloading

    Is it possible to overload the operator *+= such that
    obj1 *+= obj2;
    implies that
    obj1=obj1*(obj1+obj2);

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    There would have to be an operator *+= for you to be able to overload it.

  3. #3
    Registered User
    Join Date
    Oct 2009
    Location
    While(1)
    Posts
    377
    Is there any operator *+= in C/C++ i didn't found sorry u cant

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21