Changing the operator definitions to use const reference arguments