TITLE: Overloading operator , ? PROBLEM: matt@physics2.berkeley.edu (Matt Austern) Incidentally, can anyone suggest to me any good reason why operator, is overloadable? Is there ever any sensible reason to overload operator,? RESPONSE: p j l @graceland.att.com (Paul J. Lucas), 14 Nov 94 Yes: template class Set { public: // ... Set& operator= ( T const& ); Set& operator+=( T const& ); Set& operator, ( T const &t ) { return operator+=( t ); } }; Set s; // ... s = 1, 2, 3, 5, 7; s += 11, 13; Overloading operator,() is a type-safe "...". Overloading =, += and comma as a trio is very handy. Operator comma gets the associativity correct.