I think it should be. Set should not change the incoming values ever, so lets say so. const and a reference is the way to do that.