1
0
Fork 0
mirror of https://github.com/Neargye/magic_enum.git synced 2026-01-09 23:34:23 +00:00

remove unnecessary template instantiations

This commit is contained in:
neargye 2023-05-30 17:18:07 +04:00
parent 6fe7ffbf35
commit e59f8736fe

View file

@ -496,11 +496,6 @@ constexpr auto n() noexcept {
#else
auto name = str_view{};
#endif
constexpr auto prefix = n<decltype(V)>().size();
if (name.size_ > prefix && name.str_[prefix] == ':') {
name.size_ -= (prefix + 2);
name.str_ += (prefix + 2);
}
std::size_t p = 0;
for (std::size_t i = 0; i < name.size_; ++i) {
if (name.str_[i] == ':') {