should be a const reference to `name`.