Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #9972
| Newsgroups | comp.lang.c++ |
|---|---|
| Subject | Re: ifstream ofstream ? |
| References | <op.v1jdhqlu2juju3@ajwin7> <82c9e0b4-cd70-49ef-a2c5-976dbcaa88aa@o26g2000vbi.googlegroups.com> |
| Date | 2011-09-09 13:18 +0200 |
| From | Asger-P <junk@asger-p.dk> |
| Organization | Asger-P |
| Message-ID | <op.v1jgcklg2juju3@ajwin7> (permalink) |
Hi Goran
Thanks for replying
On the: 09. of september-2011 At: 12:56 Goran wrote:
>>
>> if( ! ifile )
>>
>> isn't that always true on an refference ?
>
> First off: what reference?
You know what I'm talking about, so please tell me, that isn't
a reference that is called ????
> Second, try this:
> class test
> {
> };
>
> test t;
> test& r = t;
> if (r) // doesn't compile
> {
> }
neither does this:
if(t)
{
}
so reference or ???? that doesn't matter, it does of course give me
clue in direction of, there is something special about ifile...
If there wasn't it would not compile.
> I suggest to step through that "if" (not "step over") with your
> debugger and think about what you're seeing. (I am not trying to be
> facetious, I am certain you'll learn something this way)
That shows me what I expected to see a whole lot of internal
values of ifile: {{3,false, false,0,512,0,.......
but nothing that makes me any wiser
Best regards
Asger-P
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
ifstream ofstream ? Asger-P <junk@asger-p.dk> - 2011-09-09 12:16 +0200
Re: ifstream ofstream ? Goran <goran.pusic@gmail.com> - 2011-09-09 03:56 -0700
Re: ifstream ofstream ? Asger-P <junk@asger-p.dk> - 2011-09-09 13:18 +0200
Re: ifstream ofstream ? Goran <goran.pusic@gmail.com> - 2011-09-09 06:00 -0700
Re: ifstream ofstream ? Asger-P <junk@asger-p.dk> - 2011-09-09 15:17 +0200
Re: ifstream ofstream ? Goran <goran.pusic@gmail.com> - 2011-09-09 06:55 -0700
Re: ifstream ofstream ? Asger-P <junk@asger-p.dk> - 2011-09-09 16:22 +0200
Re: ifstream ofstream ? Goran <goran.pusic@gmail.com> - 2011-09-09 07:39 -0700
Re: ifstream ofstream ? Stuart Redmann <DerTopper@web.de> - 2011-09-09 08:05 -0700
Re: ifstream ofstream ? Goran <goran.pusic@gmail.com> - 2011-09-09 08:18 -0700
Re: ifstream ofstream ? Asger-P <junk@asger-p.dk> - 2011-09-09 17:07 +0200
Re: ifstream ofstream ? Nobody <nobody@nowhere.com> - 2011-09-10 10:23 +0100
csiph-web