This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Proper and portable ways using manipulator
- From: LLeweLLyn Reese <llewelly at lifesupport dot shutdown dot com>
- To: Wei Qin <wqin at EE dot Princeton dot EDU>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 07 Aug 2003 22:39:57 -0700
- Subject: Re: Proper and portable ways using manipulator
- References: <Pine.SOL.4.43.0308080052330.5638-100000@ivy.ee.princeton.edu>
Wei Qin <wqin@EE.Princeton.EDU> writes:
> Hi, LLeweLLyn,
>
> Thanks for the reply.
> I tried <iomanip>, it works for g++3, but again not for g++2.
> I grepped its g++-2 directory and the only showbase that I found is an enum.
> So I now assume that there is no showbase manipulator in that
> library.
Probably correct.
>
> Is there any similar backward compatible way to use manipulators as
> the hash_map one given at
> http://gcc.gnu.org/onlinedocs/libstdc++/faq/#5_4
> ?
[snip]
I don't know. I doubt it; there's backward/iostream.h , but it just
#includes <iostream> and adds using declarations to bring
appropriate things into the global namespaces. Same for the other
iostream headers in backward/.