delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/25/03:12:57

From: horst DOT kraemer AT snafu DOT de (Horst Kraemer)
To: djgpp AT delorie DOT com
Subject: Re: Bug in iostreams!!
Date: Mon, 25 Jan 1999 08:11:16 GMT
Message-ID: <36ac2427.30559723@berlin.snafu.de>
References: <3 DOT 0 DOT 6 DOT 32 DOT 19990124211438 DOT 0081f8a0 AT pop DOT netaddress DOT com>
In-Reply-To: <3.0.6.32.19990124211438.0081f8a0@pop.netaddress.com>
X-Mailer: Forte Free Agent 1.11/32.235
Reply-To: djgpp AT delorie DOT com

On Sun, 24 Jan 1999 21:14:38 -0500, in comp.os.msdos.djgpp you wrote:

> Repost (first apparently got eaten -- if you saw it let me know)
> 
> The iostreams library appears to be missing skipws. Neither
> 
> some_istream.skipws();
> 
> nor
> 
> some_istream << skipws();
> 
> work. Yes, I included iostream.h and iomanip.h.
> 
> I double checked in Stroustrup 3rd Ed. and I definitely have not screwed
> up. LGP2811B.ZIP is screwed up.

1) Even if the manipulator iosbase& skipws(ios_base&) would be
implemented the correct syntax would be

	skipws(some_stream);

skipws() is no extractor/inserter.


2) skipws() is not implemented but you may have the effect by

	some_stream.setf(ios::skipws);

Regards
Horst


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019