Use reference-to-const where appropriate.