Skip to content

Commit 22416cc

Browse files
authored
use using instead of typedef
might as well fix that while we're here
1 parent cc8bbcf commit 22416cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Enum.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ sub render_enum_tables($$$$$$) {
155155
with_emit_traits {
156156
emit_block {
157157
emit "static constexpr bool is_complex = " . ($complex ? 'true' : 'false') . ";";
158-
emit "typedef $base_type base_type;";
159-
emit "typedef $full_name enum_type;";
158+
emit "using base_type = $base_type;";
159+
emit "using enum_type = $full_name;";
160160
emit "static constexpr base_type first_item_value = $base;";
161161
emit "static constexpr base_type last_item_value = $last_value;";
162162
# Cast the enum to integer in order to avoid GCC <= 4.5 assuming the value range is correct.

0 commit comments

Comments
 (0)