Mail Archives: djgpp/2000/04/17/18:52:58

From: Jason Green <news AT jgreen4 DOT fsnet DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Better support for namespaces
Date: Mon, 17 Apr 2000 23:13:05 +0100
Organization: Customer of Planet Online
Lines: 38
Message-ID: <>
References: <8df8n5$2jb$1 AT news DOT lth DOT se>
Mime-Version: 1.0
X-Trace: 956010344 1628 (17 Apr 2000 22:25:44 GMT)
NNTP-Posting-Date: 17 Apr 2000 22:25:44 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Newsreader: Forte Agent 1.7/32.534
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Niklas Pettersson" <npedt97@(nospam)> 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

- Raw text -

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