I am looking at some code, and see assignment of an enum to a varaible.
Let's just say x = y;
where y
is an enum.
Except that it actually says x = { y } ;
. My C++ is a little rusty (too much Ada). Are those braces actually required? If so, why? I believe the code to be C++ 11 or 14.