Replace overloaded operator with function call