From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.5 X-Virus-Scanned: amavisd-new at office.etersoft.ru Date: Mon, 15 Jun 2009 09:45:47 +0400 From: "Ivan A. Melnikov" To: devel@lists.altlinux.org Message-ID: <20090615094547.3f5b9f8b@deimos.localdomain> In-Reply-To: <20090614233129.GA27042@altlinux.org> References: <20090608223706.D25B18144D0@granary.armor.altlinux.org> <20090614233129.GA27042@altlinux.org> X-Mailer: Claws Mail 3.7.1 (GTK+ 2.16.2; x86_64-alt-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [devel] str*(3) - C vs. C++ X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jun 2009 05:45:59 -0000 Archived-At: List-Archive: List-Post: On Mon, 15 Jun 2009 03:31:29 +0400 "Alexey I. Froloff" wrote: > On Tue, Jun 09, 2009 at 02:37:06AM +0400, QA Team Robot wrote: > > backends/midi/alsa.cpp:234: error: invalid conversion from 'const > > char*' to 'char*' > backends/midi/alsa.cpp:234: if ((p =3D strpbrk(arg, ADDR_DELIM)) =3D=3D > NULL) >=20 > =D0=93=D0=B4=D0=B5 arg =D0=B8=D0=BC=D0=B5=D0=B5=D1=82 =D1=82=D0=B8=D0=BF = const char *. >=20 > SYNOPSIS > #include >=20 > char *strpbrk(const char *s, const char *accept); > ^^^^^^^^^^^^^ >=20 > /usr/include/c++/4.4.0/cstring: strpbrk(char* __s1, const char* __s2) > ^^^^^^^^^^ > /usr/include/c++/4.4.0/cstring: { return > __builtin_strpbrk(const_cast(__s1), __s2); } > ^^^^^^^^^^^^^^^^^^^^^^^ >=20 > =D0=98 =D0=BA=D0=B0=D0=BA =D1=8D=D1=82=D0=BE =D0=BD=D0=B0=D0=B7=D1=8B=D0= =B2=D0=B0=D0=B5=D1=82=D1=81=D1=8F? =D0=90=D0=BD=D0=B0=D0=BB=D0=BE=D0=B3=D0= =B8=D1=87=D0=BD=D0=BE strchr(3) =D0=B8 =D0=B4=D1=80. >=20 =D0=98=D1=81=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D1=83=D1=8E libstdc++4.4-devel-4= .4.0-alt3. =D0=97=D0=B4=D0=B5=D1=81=D1=8C =D1=8D=D1=82=D0=B8 =D0=BE=D0=BF= =D1=80=D0=B5=D0=B4=D0=B5=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F =D0=BF=D1=80=D0=B8=D1=81=D1=83=D1=82=D1=81=D1=82=D0=B2=D1=83=D1=8E=D1=82 = =D1=82=D0=BE=D0=BB=D1=8C=D0=BA=D0=BE =D0=B5=D1=81=D0=BB=D0=B8 =D0=BD=D0=B5 = =D0=BE=D0=BF=D1=80=D0=B5=D0=B4=D0=B5=D0=BB=D0=B5=D0=BD =D1=81=D0=B8=D0=BC= =D0=B2=D0=BE=D0=BB =D0=BF=D1=80=D0=B5=D0=BF=D1=80=D0=BE=D1=86=D0=B5=D1=81= =D1=81=D0=BE=D1=80=D0=B0 __CORRECT_ISO_CPP_STRING_H_PROTO, =D0=BA=D0=BE=D1=82=D0=BE=D1=80=D1=8B=D0= =B9, =D0=B2=D1=80=D0=BE=D0=B4=D0=B5 =D0=B1=D1=8B, =D0=B4=D0=BE=D0=BB=D0=B6= =D0=B5=D0=BD =D0=BE=D0=BF=D1=80=D0=B5=D0=B4=D0=B5=D0=BB=D1=8F=D1=82=D1=8C=D1=81=D1=8F = =D0=B2 =D0=B8=D0=B7 glibc-devel-2.10.1-alt2 =D0=BD=D0=B0 37-=D0= =BE=D0=B9 =D1=81=D1=82=D1=80=D0=BE=D0=BA=D0=B5. =D0=AF =D1=83=D1=81=D0=BF=D0=B5=D1=88= =D0=BD=D0=BE =D1=81=D0=BA=D0=BE=D0=BC=D0=BF=D0=B8=D0=BB=D0=B8=D1=80=D0=BE= =D0=B2=D0=B0=D0=BB =D1=82=D0=B0=D0=BA=D0=BE=D0=B5 =D0=B2=D0=BE=D1=82: $ cat a.cpp=20 #include const char* test =3D "Test"; const char* accept =3D "s"; int main() { return std::strpbrk(test, accept) - test; } =D0=9F=D0=BE=D0=BB=D1=83=D1=87=D0=B5=D0=BD=D0=BD=D1=8B=D0=B9 =D0=B1=D0=B8= =D0=BD=D0=B0=D1=80=D0=BD=D0=B8=D0=BA =D0=B4=D0=B5=D0=B9=D1=81=D1=82=D0=B2= =D0=B8=D1=82=D0=B5=D0=BB=D1=8C=D0=BD=D0=BE =D0=B2=D0=BE=D0=B7=D0=B2=D1=80= =D0=B0=D1=89=D0=B0=D0=B5=D1=82 =D0=BA=D0=BE=D0=B4 2. =D0=9C=D0=BE=D0=B6=D0=B5=D1=82, =D1=83 =D0=92=D0=B0=D1=81 =D0=BA=D0=B0=D0= =BA=D0=BE=D0=B9-=D1=82=D0=BE string.h =D0=BF=D0=BE=D0=B4=D1=81=D0=BE=D0=B2= =D0=B2=D1=8B=D0=B2=D0=B0=D0=B5=D1=82=D1=81=D1=8F =D0=BD=D0=B5=D0=BF=D1=80= =D0=B0=D0=B2=D0=B8=D0=BB=D1=8C=D0=BD=D1=8B=D0=B9? =D0=A7=D1=82=D0=BE =D0=B7= =D0=B0 =D0=BF=D0=B0=D0=BA=D0=B5=D1=82? --=20 WBR, Ivan A. Melnikov