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] enum_flags: Use C++11 std::underlying_type


On 2016-11-03 23:22, Pedro Alves wrote:
 template <typename E>
 class enum_flags
 {
 public:
   typedef E enum_type;

I have a question about this, even though it's not a change part of this patch. Is it useful to have a typedef to define enum_type? Can't we directly use template <typename enum_type> above the class?


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