Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 45580 invoked from network); 28 Sep 2006 18:38:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Sep 2006 18:38:09 -0000 Received: (qmail 94454 invoked by uid 500); 28 Sep 2006 18:38:09 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 94442 invoked by uid 500); 28 Sep 2006 18:38:09 -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 94431 invoked by uid 99); 28 Sep 2006 18:38:08 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Sep 2006 11:38:08 -0700 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=HTML_MESSAGE Received: from [208.30.140.160] ([208.30.140.160:33642] helo=moroha.quovadx.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 82/1A-17533-E761C154 for ; Thu, 28 Sep 2006 11:37:53 -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 k8SIaaW6007168 for ; Thu, 28 Sep 2006 18:36:39 GMT X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C6E32D.2CDED578" Subject: string insert parameter ambiguous Date: Thu, 28 Sep 2006 12:37:39 -0600 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: string insert parameter ambiguous Thread-Index: AcbjLQ3DduRnxH9CTPutiOO3rUavNA== From: "Scott Zhong" To: X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C6E32D.2CDED578 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable std::string xmant =3D x.before_ + x.after_; if (y.before_.length() > x.before_.length()) { xmant.insert(0, y.before_.length() - x.before_.length(), '0' ); } =20 gcc -D_RWCONFIG=3D12d -I. -I./../../../../include -I.. -fPIC -O2 = -pthread -ftemplate-depth-32 -D_RWCONFIG=3D12d -I/build/sourcepro/include -c ../t.cpp =20 call of overloaded `insert(int, unsigned int, char)' is ambiguous /build/sourcepro/include/string:406: candidates are: std::basic_string<_CharT, _Traits, _Allocator>& std::basic_string<_CharT, _Traits, _Allocator>::insert(_Allocator::size_type, _Allocator::const_pointer, _Allocator::size_type) [with _CharT =3D char, _Traits =3D std::char_traits, _Allocator =3D std::allocator] /build/sourcepro/include/string:434: void std::basic_string<_CharT, _Traits, _Allocator>::insert(_Allocator::pointer, _Allocator::const_pointer, _Allocator::const_pointer) [with _CharT =3D char, _Traits =3D std::char_traits, _Allocator =3D std::allocator] /build/sourcepro/include/string:444: void std::basic_string<_CharT, _Traits, _Allocator>::insert(_Allocator::pointer, _Allocator::pointer, _Allocator::pointer) [with _CharT =3D char, _Traits =3D std::char_traits, _Allocator =3D std::allocator] /build/sourcepro/include/string:470: void std::basic_string<_CharT, _Traits, _Allocator>::insert(_Allocator::pointer, _Allocator::size_type, _Traits::char_type) [with _CharT =3D char, _Traits =3D std::char_traits, _Allocator =3D std::allocator] /build/sourcepro/include/string:475: std::basic_string<_CharT, _Traits, _Allocator>& std::basic_string<_CharT, _Traits, _Allocator>::insert(_Allocator::size_type, _Allocator::size_type, _Traits::char_type) [with _CharT =3D char, _Traits =3D std::char_traits, _Allocator =3D std::allocator] ------_=_NextPart_001_01C6E32D.2CDED578--