🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.lib.bug
Article #241

ios format flag

#241
From: Bill Eggers
Date: Sun, 30 Aug 1992 06:54
20 lines
1244 bytes
Hello There,

 While running a test program from "Teach Yourself C++" involving setf(),
I noticed that one of the ios format flags, namely "ios::fixed", is incorrectly
defined in libg++ 2.2, the most recent version I could find.

This is a copy of the flag definitions, as in streambuf.h:

 enum { skipws=01, left=02, right=04, internal=010,
           dec=020, oct=040, hex=0100,
           showbase=0200, showpoint=0400, uppercase=01000, showpos=02000,
           scientific=04000, fixed=0100000, unitbuf=020000, stdio=040000,
           dont_close=0x80000000 //Don't delete streambuf on stream destruction
           };

According to my book, the value of fixed should be 010000 (0x1000), instead of
0100000 (0x8000).  I thought I should mention it if this happens to interfere 
with any other definition.

			Bill
Technical Details
Message-ID: <9208300654.AA23082@krypton.chem.buffalo.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!krypton.chem.buffalo.edu!eggers

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.lib.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!krypton.chem.buffalo.edu!eggers
From: eggers@krypton.chem.buffalo.edu (Bill Eggers)
Subject: ios format flag
Message-ID: <9208300654.AA23082@krypton.chem.buffalo.edu>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Sun, 30 Aug 1992 06:54:01 GMT
Approved: bug-lib-g++@prep.ai.mit.edu
Lines: 21