http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59211

Daniel Krügler <daniel.kruegler at googlemail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel.kruegler@googlemail.
                   |                            |com

--- Comment #3 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
(In reply to Nadav Har'El from comment #2)
> For the enum class, prio::second, I can't use addition (because it isn't
> implemented in this class), but a simple cast to int works!

IMO the explicit conversion is necessary here and the fact that it doesn't work
without it is not a bug. Note that a scoped enumeration type does not
implicitly convert to integral types and only a very small number of core
language constructs accept scoped enums without a case.

Reply via email to