Every regular officer and employee ofsuch city, in active service at the time ofthe passage ofthis act, now on the payroll, and future officers and employees, may as a matter of right retire from active service, provided he shall have served 25 years in active service of such city at the time of his retirement.