Defines operator= for sp