Always expose underlying type of enum

This commit is contained in:
Jonathan Müller 2017-04-06 11:51:31 +02:00
commit 251e9abf5f
4 changed files with 30 additions and 25 deletions

View file

@ -205,10 +205,10 @@ namespace
if (e.is_scoped())
output << whitespace << keyword("class");
output << whitespace << identifier(e.name());
if (e.underlying_type())
if (e.has_explicit_type())
{
output << newl << punctuation(":");
detail::write_type(output, e.underlying_type().value(), "");
detail::write_type(output, e.underlying_type(), "");
}
if (e.is_definition())