Prefer pass-by-reference-to-const to pass-by-value. Effective C++ item 20.