hit counter

Timeline

My development logbook

Item 15: Have Operator= Return a Reference to *this

A common error amongst new C++ programmers is to have operator= return void, a decision that seems reasonable unTIL you realize it prevents chains of assignment.

Here is an example implementation: