Don't assume compiler can avoid copy to const ref.