FAQ 11.13 Does int& const x make sense?No, it doesn't. Since a reference is always bound to the same referent, the const is superfluous and possibly confusing. class Fred { }; void f(Fred& const a); <-- 1 void g(const Fred& const a); <-- 2 void sample(Fred& a) { Fred& const b = a; <-- 3 const Fred& const c = a; <-- 4 }
|