Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: sven.eden@×××.de
Subject: Re: [gentoo-dev] How to support C++11 in libraries?
Date: Thu, 19 Dec 2013 09:19:19
Message-Id: 20131219100731.026a498e@gentoo.org
In Reply to: Re: [gentoo-dev] How to support C++11 in libraries? by Sven Eden
1 Dnia 2013-12-19, o godz. 09:58:25
2 Sven Eden <sven.eden@×××.de> napisał(a):
3
4 > Am Mittwoch, 18. Dezember 2013, 08:54:47 schrieb Michał Górny:
5 > > This raises the following question: how do we want to do it? I see two
6 > > possibilities:
7 > >
8 > > a) adding USE=c++11 and USE-deps to all the packages in question,
9 > >
10 > > b) doing the switch via synchronous version bump and matching
11 > > dependencies.
12 > >
13 > (snip)
14 > >
15 > > What are your thoughts?
16 >
17 > I have already switched to C++11 on all my projects ages ago. It offers a lot,
18 > and the incompatibilities are rare at best.
19 >
20 > C++11 is the current standard with the next being worked on already.
21 > What is the rationale for staying with C++03 or (worse) C++98 in the first
22 > place? Nothing is gained. Only the need to fix what becomes broken.
23
24 I can agree with that but we need a way to get a smooth transition.
25
26 > So I'd go the reverse way. Make CXXFLAGS="-std=c++11" the default, and only
27 > override this for packages that do fishy stuff and break with it.
28
29 How can we do that? I think the only possibility is to patch gcc
30 and change the default...
31
32 --
33 Best regards,
34 Michał Górny

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] How to support C++11 in libraries? Ian Stakenvicius <axs@g.o>