mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-10 23:44:29 +00:00
update comments
This commit is contained in:
parent
aba62c4556
commit
da76bd607f
1 changed files with 2 additions and 2 deletions
|
|
@ -112,7 +112,7 @@ template <typename E, E V>
|
||||||
if (name.length() > 0 && is_name_char(name.front(), true)) {
|
if (name.length() > 0 && is_name_char(name.front(), true)) {
|
||||||
return name;
|
return name;
|
||||||
} else {
|
} else {
|
||||||
return {}; // Enum value does not have name.
|
return {}; // Value does not have name.
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
@ -134,7 +134,7 @@ template <typename E>
|
||||||
if (i >= 0 && static_cast<std::size_t>(i) < names.size()) {
|
if (i >= 0 && static_cast<std::size_t>(i) < names.size()) {
|
||||||
return names[i];
|
return names[i];
|
||||||
} else {
|
} else {
|
||||||
return {};
|
return {}; // Value out of range.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue