Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos committed Dec 20, 2023
1 parent bc44256 commit 84f8cbf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions iguana/enum_reflection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,14 @@ inline constexpr std::string_view type_string() {
constexpr std::string_view str = get_raw_name<T>();
constexpr auto next1 = str.rfind(sample[pos + 3]);
#if defined(_MSC_VER)
constexpr auto s1 = str.substr(pos + 6, next1 - pos - 6);
constexpr std::size_t npos = str.find_first_of(" ", pos);
if (npos != std::string_view::npos)
return str.substr(npos + 1, next1 - npos - 1);
else
return str.substr(pos, next1 - pos);
#else
constexpr auto s1 = str.substr(pos, next1 - pos);
return str.substr(pos, next1 - pos);
#endif
return s1;
}

template <auto T>
Expand Down

0 comments on commit 84f8cbf

Please sign in to comment.