"Andre' Poenitz" <[EMAIL PROTECTED]> writes:

| I have a short (and maybe stupid) question:
| 
| Does
| 
|    const obj &         mean a reference to a constant object, i.e. the
|                          object itself cannot be changed  
| 
| and
| 
|    obj const &         mean a constant reference to an object, i.e. the
|                          reference is constant (but not necessarily the
|                          object) ?

No. They mean excatly the same. "Reference to const object"

"Read from right to left, except whan at the obj before the last
const"

By always using "obj const &" instead of "const obj &" we can remove
the specialization from the above rule.

        Lgb
  • const Anonymous
    • Anonymous

Reply via email to