Assigning the return value of new by reference is deprecated