We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
using
typedef
1 parent cc8bbcf commit 22416ccCopy full SHA for 22416cc
Enum.pm
@@ -155,8 +155,8 @@ sub render_enum_tables($$$$$$) {
155
with_emit_traits {
156
emit_block {
157
emit "static constexpr bool is_complex = " . ($complex ? 'true' : 'false') . ";";
158
- emit "typedef $base_type base_type;";
159
- emit "typedef $full_name enum_type;";
+ emit "using base_type = $base_type;";
+ emit "using enum_type = $full_name;";
160
emit "static constexpr base_type first_item_value = $base;";
161
emit "static constexpr base_type last_item_value = $last_value;";
162
# Cast the enum to integer in order to avoid GCC <= 4.5 assuming the value range is correct.
0 commit comments