--Boundary-00=_wVTsE620XpOQKdf Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, This patch is not in 1.34-rc1. What's the preferred way to submit those=20 things? Thanks, Marc =2D-=20 Marc Mutz -- marc@klaralvdalens-datakonsult.se, mutz@kde.org Klar=E4lvdalens Datakonsult AB, Platform-independent software solutions --Boundary-00=_wVTsE620XpOQKdf Content-Type: message/rfc822; name="forwarded message" Content-Transfer-Encoding: 7bit Content-Description: Marc Mutz : [Boost-users] [format][patch][1.33.1][SunPro11] missing static_cast from void* to char* Content-Disposition: inline Return-Path: Received: from localhost (localhost [127.0.0.1]) by auriga.hrhansen.dk (Cyrus v2.2.12) with LMTPA; Mon, 03 Apr 2006 14:07:19 +0200 X-Sieve: CMU Sieve 2.2 Received: from localhost (localhost [127.0.0.1]) by auriga.hrhansen.dk (Postfix) with ESMTP id 33C0682E2A for ; Mon, 3 Apr 2006 14:07:19 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by auriga.hrhansen.dk (Postfix) with ESMTP id A324C82E45 for ; Mon, 3 Apr 2006 14:07:18 +0200 (CEST) Received: from auriga.hrhansen.dk ([127.0.0.1]) by localhost (auriga [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07691-10 for ; Mon, 3 Apr 2006 14:07:10 +0200 (CEST) Received: from wowbagger.osl.iu.edu (wowbagger.osl.iu.edu [129.79.245.252]) by auriga.hrhansen.dk (Postfix) with ESMTP id E679382BC2 for ; Mon, 3 Apr 2006 14:07:09 +0200 (CEST) Received: from wowbagger.osl.iu.edu (localhost [127.0.0.1]) by wowbagger.osl.iu.edu (Postfix) with ESMTP id DEBEB10565A; Mon, 3 Apr 2006 08:00:58 -0400 (EDT) X-Original-To: boost-users@lists.boost.org Delivered-To: boost-users@lists.boost.org Received: from auriga.hrhansen.dk (hrhansen.dk [80.63.196.222]) by wowbagger.osl.iu.edu (Postfix) with ESMTP id 71D4F105593 for ; Mon, 3 Apr 2006 08:00:54 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by auriga.hrhansen.dk (Postfix) with ESMTP id 0228482E22 for ; Mon, 3 Apr 2006 14:06:57 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by auriga.hrhansen.dk (Postfix) with ESMTP id B832282DDB for ; Mon, 3 Apr 2006 14:06:57 +0200 (CEST) Received: from auriga.hrhansen.dk ([127.0.0.1]) by localhost (auriga [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07580-09 for ; Mon, 3 Apr 2006 14:06:52 +0200 (CEST) Received: from vimes (klaralvdalens-datakonsult.de [81.169.166.209]) by auriga.hrhansen.dk (Postfix) with ESMTP id BE14C82BC2 for ; Mon, 3 Apr 2006 14:06:51 +0200 (CEST) From: Marc Mutz To: boost-users@lists.boost.org Date: Mon, 3 Apr 2006 14:00:26 +0200 User-Agent: KMail/1.7 (proko2 2.0.4) MIME-Version: 1.0 Message-Id: <200604031400.35972.marc@klaralvdalens-datakonsult.se> X-Virus-Scanned: by amavisd-new at kdab.net Subject: [Boost-users] [format][patch][1.33.1][SunPro11] missing static_cast from void* to char* X-BeenThere: boost-users@lists.boost.org X-Mailman-Version: 2.1.6 Precedence: list Reply-To: boost-users@lists.boost.org List-Id: Boost Users mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1698440610==" Sender: boost-users-bounces@lists.boost.org Errors-To: boost-users-bounces@lists.boost.org X-Virus-Scanned: by amavisd-new at kdab.net X-Kolab-Scheduling-Message: FALSE X-Length: 6198 X-UID: 1363 --===============1698440610== Content-Type: multipart/signed; boundary="nextPart13002533.x3n6HUHqls"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart13002533.x3n6HUHqls Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, SunPro (tested: v11, with current patches), needs the attached patch to com= pile the following code: =2D-code-- using boost::format; using boost::str; void foo( const std::string & ); format fmt( "host=3D%1%,port=3D%2%" ); const std::string host =3D ...; const unsigned short port =3D ...; foo( str( fmt % host % port ) ); =2D-/code-- =2D-- /opt/boost/cc/1.33.1/include/boost-1_33_1/boost/format/alt_sstream_im= pl.hpp~ Sun Feb 27 03:06:57 2005 +++ /opt/boost/cc/1.33.1/include/boost-1_33_1/boost/format/alt_sstream_impl= =2Ehpp Mon Apr 24 18:07:09 2006 @@ -245,7 +245,7 @@ add_size /=3D 2; if(0 < add_size) { new_size +=3D add_size; =2D newptr =3D alloc_.allocate(new_size, is_allocated_? = oldptr : 0); + newptr =3D static_cast(alloc_.allocate(new_size, = is_allocated_? oldptr : 0)); } if(0 < prev_size) Thanks, Marc PS: Regarding the API: I don't much like the fact that format::operator% changes the format instance. I would have liked to write "static const form= at" in the code snippet above. Feels more natural ("do as the ints do"). I see = where the design comes from (speed optimization), but speed shouldn't dictate des= ign. Expression templates could be used to speed up the process. =2D-=20 Marc Mutz -- marc@klaralvdalens-datakonsult.se, mutz@kde.org Klar=E4lvdalens Datakonsult AB, Platform-independent software solutions --nextPart13002533.x3n6HUHqls Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBEMQ5jA0OQdp2RyrURAtImAJ9C/0pjwr11evpEC784nwbyLrvyQACfQi7k 703KYOEH+FKgq8gKp7yh5+c= =b7DQ -----END PGP SIGNATURE----- --nextPart13002533.x3n6HUHqls-- --===============1698440610== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users --===============1698440610==-- --Boundary-00=_wVTsE620XpOQKdf--