The county treasurer emeritus shall not hold any compensating position with any state, county, or city, or agencies of any, except upon taking leave of absence as such county treasurer emeritus, and forever waiving and relinquishing compensation during and for such leave of absence.