This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/3] Introduce gdb::unique_ptr


> I think it would make a lot of sense to switch to C++11.  I'd love
> that.  rvalue references support, move-aware containers, "auto",
> std::unique_ptr and std::shared_ptr would be all very nice to have.
> 
> The only question in my mind is -- are people OK with requiring
> gcc 4.8 or later?

FWIW, I think it is fine to require C++11 if there are sufficient
benefits we can derive from it. This seems like a good example
of something we could simplify greatly if we did?

Note that I wouldn't necessarily think in purely in terms of which
version of GCC supports it, but also consider whether want to support
building GDB with non-GCC compilers, particularly on the more exotic
systems out there, where it can be hard to build GDB. Do all these
compilers support C++11? Probably not.  This is where it becomes
a judgment call for me.  Making it easy to build with other compilers
by limiting which parts of the language we can use helps getting wider
use of GDB; but on the other hand, if it comes at too much of a cost
in terms of the code and its maintenance, then it seems better overall
to increase our list of requirements.

-- 
Joel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]