Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #9979

Re: ifstream ofstream ?

Newsgroups comp.lang.c++
Subject Re: ifstream ofstream ?
References <op.v1jdhqlu2juju3@ajwin7> <82c9e0b4-cd70-49ef-a2c5-976dbcaa88aa@o26g2000vbi.googlegroups.com> <op.v1jgcklg2juju3@ajwin7> <c66c4e0d-777c-4415-bac9-24160ff19bb7@y21g2000yqk.googlegroups.com>
Date 2011-09-09 15:17 +0200
From Asger-P <junk@asger-p.dk>
Organization Asger-P
Message-ID <op.v1jlvvxx2juju3@ajwin7> (permalink)

Show all headers | View raw


Hi Goran

On the: 09. of september-2011 At: 15:00 Goran wrote:

>
> Go to the "if" line with your debugger. Once there, issue "step into"
> command. You should see something strange. You should step into some
> function from standard library. Take a good look at what the function
> is.

Ok I see this:
   basic_ios<charT, traits>::operator!() const
   {
     return fail();
   }

I couldn't go into fail(), but I found this:

   template<class charT, class traits>
   inline bool
   basic_ios<charT, traits>::fail() const
   {
     return (__state & (ios_base::failbit | ios_base::badbit));
   }

So it look like it returns whether or not everything went ok,
so that is fine then.

Thanks.

P.s. Is the code all together OK ?
and You didn't tell me what the correct name was,
now that reference wasn't the right one?

Thanks again.
Best regards
Asger-P

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


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