Error thrown

Cannot assign by reference to overloaded object