[c++-sig] Digest Number 54

mark.mcmahon at eur.autodesk.com mark.mcmahon at eur.autodesk.com
Thu Nov 16 15:20:31 CET 2000

It is actually part of the standard  (of which I do not have) but



-----Original Message-----
From: David Abrahams [mailto:abrahams at mediaone.net]
Sent: 16 November 2000 15:15
To: mark.mcmahon at eur.autodesk.com; c++-sig at python.org
Subject: Re: [c++-sig] Digest Number 54

That's a nonstandard and thus nonportable feature of one particular standard
library implementation. The OP didn't say which platform he was using.

----- Original Message -----
From: <mark.mcmahon at eur.autodesk.com>

> Or you could use sync_with_stdio
> ----- copy from MSDN -----------
> ios_base::sync_with_stdio
> static bool sync_with_stdio(bool sync = true);
> The static member function stores a stdio sync flag, which is initially
true. When true, this flag ensures that operations on the same file are
properly synchronized between the iostreams functions and those defined in
the Standard C library. Otherwise, synchronization may or may not be
guaranteed, but performance may be improved. The function stores sync in the
stdio sync flag and returns its previous stored value. You can call it
reliably only before performing any operations on the standard streams.
> --------------------------------

C++-SIG maillist  -  C++-SIG at python.org

More information about the Cplusplus-sig mailing list