Just take by const reference ALWAYS, because there isn't much overhead in passing primitive types as const references.
Armen Tsirunyan
2010-10-12 14:17:03
Just take by const reference ALWAYS, because there isn't much overhead in passing primitive types as const references.
Write your template code for const
references only and rely on the compiler to optimize the references away.