Re: [PATCH 1/3] enum_flags: Use C++11 std::underlying_type

Simon Marchi
2016-11-05T02:28:27Z

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?