🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #4066

Re: IOSTREAM question : should ends manipulato

#4066
From: Steve Clamage
Date: Tue, 16 Apr 1996 20:17
19 lines
1634 bytes
In article 1604961139410001@galois.ecs.soton.ac.uk, S.D.Maclean@ecs.soton.ac.uk (Stuart Maclean) writes:
>
>I noticed that manipulator "endl" synchronises with the external
>representation, but "ends" does not.  Tracing our IOStream library,
>libg++-2.7.1, it indeed does not do a flush when using "ends". 

That is correct. It has always been the case (and is still the case
in the draft standard) that "ends" inserts a null character but does
not flush, and "endl" inserts a newline character followed by a flush.

---
Steve Clamage, stephen.clamage@eng.sun.com
---
[ comp.std.c++ is moderated.  To submit articles: Try just posting with your 
                newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  Comments? mailto:std-c++-request@ncar.ucar.edu 
]
Technical Details
Message-ID: <4l0c0o$qm1@engnews1.Eng.Sun.COM>
Path: arc1-ca.pugleaf.net!fido.asd.sgi.com!austern
References: <sdm-1604961139410001@galois.ecs.soton.ac.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!fido.asd.sgi.com!austern
From: clamage@Eng.Sun.COM (Steve Clamage)
Newsgroups: comp.std.c++
Subject: Re: IOSTREAM question : should ends manipulato
Date: 16 Apr 1996 13:17:45 PDT
Organization: Sun Microsystems Inc.
Approved: austern@isolde.mti.sgi.com
Message-ID: <4l0c0o$qm1@engnews1.Eng.Sun.COM>
References: <sdm-1604961139410001@galois.ecs.soton.ac.uk>
Reply-To: clamage@Eng.Sun.COM
NNTP-Posting-Host: isolde.mti.sgi.com
X-Original-Date: 16 Apr 1996 14:48:56 GMT
X-Auth: PGPMoose V1.1 PGP comp.std.c++
 iQBVAwUBMXQAaky4NqrwXLNJAQEg7gH/WW3zuLX8dYMas6YaFRU64Sazs8u7uyrJ
 Z4hAVKC1+aSvSjZK4c8oEbnz+2ZLmoLjkW0uPTZ0ij61fhSaq24HoQ==
 =cmYF
Originator: austern@isolde.mti.sgi.com