I'm looking through n3690
, a draft of the upcoming C++14
standard, and I see in section 7.2
paragraph 9
:
Two enumeration types are layout-compatible if they have the same underlying type.
However, I can't find anything that says an enumeration type is layout-compatible with its underlying type. To me it seems obvious that this should follow given the reasonable semantics for what "underlying type" means, but is it actually guaranteed by the standard?