Thread
:
operator += with user-defined classes.
View Single Post
Feb 20th, 2005, 3:20 PM
#
2
Eggbert
Professional Programmer
Join Date: Nov 2004
Posts: 250
Rep Power:
5
+= is actually more fundamental than +. Try defining += as a member function of your class and then defining + as a non-member function in terms of +=.
Eggbert
View Public Profile
Find More Posts by Eggbert