Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 61875 invoked from network); 2 Oct 2006 20:13:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Oct 2006 20:13:03 -0000 Received: (qmail 61397 invoked by uid 500); 2 Oct 2006 20:13:03 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 61381 invoked by uid 500); 2 Oct 2006 20:13:03 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 61370 invoked by uid 99); 2 Oct 2006 20:13:03 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Oct 2006 13:13:03 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from [208.30.140.160] ([208.30.140.160:54334] helo=moroha.quovadx.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id FF/07-24395-AC271254 for ; Mon, 02 Oct 2006 13:13:01 -0700 Received: from qxvcexch01.ad.quovadx.com (qxvcexch01.ad.quovadx.com [192.168.170.59]) by moroha.quovadx.com (8.13.6/8.13.6) with ESMTP id k92KCKaw029180 for ; Mon, 2 Oct 2006 20:12:21 GMT X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: unable to use boolalpha stream manipulator in sourcepro ed9 Date: Mon, 2 Oct 2006 14:13:03 -0600 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: unable to use boolalpha stream manipulator in sourcepro ed9 Thread-Index: AcbmXc3K4P5ZtZvcRmagPmaGhrN1qQAAQkwg From: "Scott Zhong" To: X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I wasn't aware I thought it was a bug, thank you martin. -----Original Message----- From: Martin Sebor [mailto:sebor@roguewave.com]=20 Sent: Monday, October 02, 2006 2:02 PM To: stdcxx-dev@incubator.apache.org Subject: Re: unable to use boolalpha stream manipulator in sourcepro ed9 Scott Zhong wrote: > cat t.cpp && gcc -D_RWCONFIG=3D12d -I../../include > -I./../../../../include -I./../../../../include/ansi t.cpp >=20 > #include The boolalpha manipulator is required to be declared in the header but in no other. Implementations are allowed to #include any library headers in any other so while your code may compile with some it's not portable. stdcxx does its best to avoid bringing in more symbols into scope than necessary -- it's a feature of our implementation and a portability bug in your code :) Martin >=20 > using namespace std; >=20 > =20 >=20 > int main () { >=20 > bool b; >=20 > b=3Dtrue; >=20 > cout << boolalpha << b << endl; >=20 > cout << noboolalpha << b << endl; >=20 > return 0; >=20 > } >=20 > t.cpp: In function `int main()': >=20 > t.cpp:7: `boolalpha' undeclared (first use this function) >=20 > t.cpp:7: (Each undeclared identifier is reported only once for each > function it=20 >=20 > appears in.) >=20 > t.cpp:8: `noboolalpha' undeclared (first use this function) >=20 > =20 >=20 > problem first appeared when using sourcepro ed6 and also appears true > for ed9. >=20 > =20 >=20 > Yu (Scott) Zhong >=20 >=20