Any one may waive the advantage of a law intended solely for his benefit. But a law established for a public reason cannot be contravened by a private agreement.
(Enacted 1872.)