I am facing my colleague writing a function definition like this:
typedef long double Real;
void func(const Real& x, const Real &y);
I know it is somewhat bad to use pass-by-ref for primitive types, but what about long double? Its length is 80 bits, longer than a pointer of 64 bits on a regular machine nowadays. So maybe for long double, pass-by-ref is more efficient than pass-by-value?