This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: C++11 (abridged version)
- From: Pedro Alves <palves at redhat dot com>
- To: GDB Patches <gdb-patches at sourceware dot org>
- Date: Thu, 27 Oct 2016 20:24:10 +0100
- Subject: Re: C++11 (abridged version)
- Authentication-results: sourceware.org; auth=none
- References: <4300d24a-8711-c5de-79ce-7c530162288c@redhat.com>
On 10/20/2016 06:07 PM, Pedro Alves wrote:
> My opinion on #3 (should we require C++11 now), is yes. C++11 is a
> great step up from C++03, and being able to use it fully would result
> in a more efficiency gdb, and would also allow simplifying things that
> require ugly workarounds in C++03. I.e., if you hate C++ and you think
> it's messy, it may actually be that what you hate is C++03, and that you'd
> actually like C++11 if you give it a chance. E.g., rvalue references, efficient
> move-aware containers (also allowing us to make containers "own" the containing
> objects, resulting in even simpler code), template aliases, variadic templates,
> etc. etc. C++11 would avoid having to consider reimplementing basic utilities
> like e.g., a type-safe hash table. C++11 is also a _simpler_ language in a way,
> as some ugly warts have been ironed out in the language (e.g., std::string
> and contiguous buffer guarantees).
Seems like pretty much everyone is in agreement with this, so
I've sent a new patch set for this now:
https://sourceware.org/ml/gdb-patches/2016-10/msg00773.html
I'd appreciate a review.
Thanks,
Pedro Alves