‘this’ argument has type const but function is not marked const
If you want to set a value, use the set method. get Methods are only to obtain variables, not to set the inner variables of a class (If they are defined the way you did). The correct usage is: Customer* CreateCustomer(const string& id, const string& name, const string& address) { Customer* temp = new Customer(); … Read more