This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[v3 patch] Re: adding 'using std::flush' to backward/iostream.h
On Mon, Feb 26, 2001 at 10:42:32AM -0800, Benjamin Kosnik wrote:
> > Opinions on this patch, for both mainline and branch?
>
> looks good: can you close libstdc++/2079 when you check this in please?
What do they say about great minds? :-)
Applied.
2001-02-26 Phil Edwards <pme@sources.redhat.com>
Fixes libstdc++/2079
* include/backward/iomanip.h: Expose <ios> manipulators to global
namespace.
* include/backward/iostream.h: Also expose std::ws.
Index: include/backward/iomanip.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/backward/iomanip.h,v
retrieving revision 1.3
diff -u -3 -p -r1.3 iomanip.h
--- iomanip.h 2000/12/23 07:13:57 1.3
+++ iomanip.h 2001/02/26 20:31:04
@@ -31,6 +31,30 @@
#include <iostream.h>
#include <bits/std_iomanip.h>
+// These are from <ios> as per [27.4].
+using std::boolalpha;
+using std::noboolalpha;
+using std::showbase;
+using std::noshowbase;
+using std::showpoint;
+using std::noshowpoint;
+using std::showpos;
+using std::noshowpos;
+using std::skipws;
+using std::noskipws;
+using std::uppercase;
+using std::nouppercase;
+using std::internal;
+using std::left;
+using std::right;
+using std::dec;
+using std::hex;
+using std::oct;
+using std::fixed;
+using std::scientific;
+
+// These are from <iomanip> as per [27.6]. Manipulators from <istream>
+// and <ostream> (e.g., endl) are made available via <iostream.h>.
using std::resetiosflags;
using std::setiosflags;
using std::setbase;
Index: include/backward/iostream.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/backward/iostream.h,v
retrieving revision 1.3
diff -u -3 -p -r1.3 iostream.h
--- iostream.h 2001/02/23 17:47:34 1.3
+++ iostream.h 2001/02/26 20:31:04
@@ -47,6 +47,7 @@ using std::wcerr;
using std::wclog;
#endif
+using std::ws;
using std::endl;
using std::ends;
using std::flush;