C2678: binary ‘=’: no operator found which takes a left-hand operand of type ‘const XXX’ (or there is no acceptable conversion) If it lacks a ‘const’, this error occurs.