www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/18/05:39:16

From: "Niklas Pettersson" <npedt97 AT student DOT vxu DOT se (nospam)>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Better support for namespaces
Date: Tue, 18 Apr 2000 11:05:53 +0200
Organization: Lund Institute of Technology, Sweden
Lines: 51
Message-ID: <8dh8ij$h5g$1@news.lth.se>
References: <8df8n5$2jb$1 AT news DOT lth DOT se> <hu2nfs085lpjeijtlhb975ihemij4akj4g AT 4ax DOT com>
NNTP-Posting-Host: npedt97.univ.vxu.se
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Ok, i 'll try the gcc newsgroup. Sorry about the question about the left
manipulator, I did missed your reply the last time I asked about it.
One little thing about your workaround, doesn't that set left adjustment
permanent? Shouldn't the left only apply to the nextcoming output?

/ Niklas


"Jason Green" <news AT jgreen4 DOT fsnet DOT co DOT uk> wrote in message
news:hu2nfs085lpjeijtlhb975ihemij4akj4g AT 4ax DOT com...
> "Niklas Pettersson" <npedt97@(nospam)student.vxu.se> wrote:
>
> > Any solution to this or is there a new version on the way?
>
> Ask this to gcc-bugs AT gcc DOT gnu DOT org (and let us know what you find out ;)
>
> > Another thing.. Shouldn't there be manipulators "left" and "right" in
the
> > STL? (according to the Standard C++ document)
>
> Yes, maybe you missed my reply the last time you asked this:
>
> There is a left manipulator defined in the standard, but it is not yet
> implemented in GCC.
>
> As a workaround, it is possible to define your own version:
>
> /* ------------------------------------------------ */
> #include <iostream>
> #include <iomanip>
> using namespace std;
>
> ios& left(ios& i)
> { i.setf(ios::left, ios::adjustfield); return i; }
>
> int main()
> {
>     cout << left << setw(50) << "Hello world";
> }
> /* ------------------------------------------------ */
>
> Missing features of <iomanip> have been reported here before.  But
> DJGPP does not provide the C++ implementation so these problems should
> be reported to the relevant GCC group.
>
> Given the fundamental nature of the problems, (and the apparently easy
> fix), it is probably already being worked on.  If you ask in a GCC
> group you might get some some idea of when these features will be
> implemented.


- Raw text -


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