Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 81242 invoked from network); 9 Mar 2006 16:27:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Mar 2006 16:27:59 -0000 Received: (qmail 47892 invoked by uid 500); 9 Mar 2006 16:27:59 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 47875 invoked by uid 500); 9 Mar 2006 16:27:58 -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 47864 invoked by uid 99); 9 Mar 2006 16:27:58 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Mar 2006 08:27:58 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of AntonP@moscow.vdiweb.com designates 195.210.189.132 as permitted sender) Received: from [195.210.189.132] (HELO mail.moscow.vdiweb.com) (195.210.189.132) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Mar 2006 08:27:58 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: test for 21.strings.capacity Date: Thu, 9 Mar 2006 19:27:35 +0300 Message-ID: <4D6A8407B7AC6F4D95B0E55C4E7C4C6203D3D7AA@exmsk.moscow.vdiweb.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: test for 21.strings.capacity Thread-Index: AcZCz9UEFK6zl2PwSXiWEBS0pnSs8AAwxs8Q From: "Anton Pevtsov" To: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I add the UserChar case into the test for 21.strings.capacity and finally got the following linker error: 21_capacity error LNK2019: unresolved external symbol "public: static struct UserChar * __cdecl UserTraits::assign(struct UserChar *,unsigned int,struct UserChar)" (?assign@?$UserTraits@UUserChar@@@@SAPAUUserChar@@PAU2@IU2@@Z) referenced in function "public: class std::basic_string,class std::allocator > & __thiscall std::basic_string,class std::allocator >::replace(unsigned int,unsigned int,unsigned int,struct UserChar)" (?replace@?$basic_string@UUserChar@@U?$UserTraits@UUserChar@@@@V?$alloca tor@UUserChar@@@std@@@std@@QAEAAV12@IIIUUserChar@@@Z) Windows, MSVC-7.1, 11d. And I have the same error in Linux. I'll investigate this, but the following sample fails to compile due to the same error: #include #include int main (int argc, char** argv) { UserChar tmp; std::basic_string, std::allocator > s (&tmp, 1); s.resize (10); return 0; } Without call to resize() it compiles successfully. What do you think about this?=20 Thanks, Anton Pevtsov -----Original Message----- From: Martin Sebor [mailto:sebor@roguewave.com]=20 Sent: Wednesday, March 08, 2006 19:50 To: stdcxx-dev@incubator.apache.org Subject: Re: test for 21.strings.capacity Martin Sebor wrote: > Anton Pevtsov wrote: >=20 >> The attached file contains the updated according to your notes=20 >> version of the test for 21.string.capacity. >=20 >=20 > Thanks! I committed this version here (I forgot that you can commit it > yourself): http://svn.apache.org/viewcvs?rev=3D384007&view=3Drev. >=20 > This version still replaces the traits::eof() function even though=20 > string doesn't make use of it. Could you take it out? In fact, since=20 > we have our own UserTraits in rw_char.h, could you replace the=20 > CharTraits class with it? Never mind this. I made the changes myself in the commit below: http://svn.apache.org/viewcvs.cgi?rev=3D384084&view=3Drev The UserTraits template also defines its own eof() but that's because the template is also used in the iostreams tests where the function does come in handy. Martin