I have a typed enum
enum side : int {_white=0,
_yellow=1,
_green=2,
_blue=3,
_red=4,
_orange=5};
However, using gcc-5, the compiler says it cannot use static_cast in the following scenario:
side value
function(static_cast<int *>(&value))
Why is that? Doing static_cast<int>(value))
does not raise any error.