This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: AIX I/O failures


Mark Mitchell <mark@codesourcery.com> writes:

| >>>>> "Gabriel" == Gabriel Dos Reis <gdr@codesourcery.com> writes:
| 
|     Gabriel> Given that cout construction happens at compile/link time
|     Gabriel> and that it has to be treated identical to the refered
| 
| Sorry, I wasn't clear.  I'm not talking about *constructing* the
| object, I'm talking about *using* it. 

It seems I wasn't clear either :-(

Given that cout would be a global reference, we know (at worst) at
link time which object it is refering to and treat it identical to the
refered-to object.  That is not the same as using pointer because we
have one invariant with a reference: its value don't change one
initialized and for global references we do know when they get
initialized. 

There are free references :-)

-- Gaby
CodeSourcery, LLC                       http://www.codesourcery.com

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]