From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 5FBA4138247 for ; Fri, 20 Dec 2013 12:45:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 888A0E0AFA; Fri, 20 Dec 2013 12:45:40 +0000 (UTC) Received: from latimerie.flaska.net (latimerie.flaska.net [46.28.111.182]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 84148E0AC0 for ; Fri, 20 Dec 2013 12:45:39 +0000 (UTC) Received: by latimerie.flaska.net (Postfix, from userid 1000) id 4892B6040F; Fri, 20 Dec 2013 13:45:37 +0100 (CET) From: =?iso-8859-1?Q?Jan_Kundr=E1t?= To: Subject: Re: [gentoo-dev] How to support C++11 in =?iso-8859-1?Q?libraries=3F?= Date: Fri, 20 Dec 2013 13:45:37 +0100 User-Agent: Trojita/v0.3.96-154-gef050ca; Qt/4.8.5; X11; Linux; Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Message-ID: In-Reply-To: <1479290.p0qqMGJcP8@sed-notebook> References: <20131218085447.56d1e133@gentoo.org> <52B309FD.60208@gentoo.org> <1479290.p0qqMGJcP8@sed-notebook> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Archives-Salt: d0918a11-b7ee-4821-ad0e-4b604e582f7c X-Archives-Hash: 5769d5a821cc347c3bc08b06ad8e1a27 On Friday, 20 December 2013 12:56:43 CEST, Sven Eden wrote: > And no, the languages are _not_ "source-incompatible". That would be a=20 > scandal! You might argue about this, but that doesn't change these facts. This is=20 absolutely valid C++98 program: jkt@svist ~ $ cat foo.cpp=20 int main() { auto int foo; return 0; } jkt@svist ~ $ g++ -std=3Dc++98 -pedantic foo.cpp jkt@svist ~ $ echo $? 0 ...which will *not* build under the C++11 mode: jkt@svist ~ $ g++ -std=3Dc++0x foo.cpp foo.cpp: In function =E2=80=98int main()=E2=80=99: foo.cpp:2:14: error: two or more data types in declaration of =E2=80=98foo=E2= =80=99 Yes, -Wc++0x-compat warns about this, yes, it's included in -Wall, but it=20 does not change the fact that there *is* code out there which does conform=20= to C++98 standard, does *not* try to "outsmart the compiler", and which=20 will not build in the C++11 mode. Do we really have to be having this=20 discussion? Cheers, Jan