Skip to content

Commit

Permalink
fix get name on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaraslaut committed Nov 5, 2024
1 parent 83b554a commit 3e7a41c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/reflection-cpp/reflection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,8 @@ consteval auto GetName()
#if defined(_MSC_VER) && !defined(__clang__)
std::string_view str = REFLECTION_PRETTY_FUNCTION;
str = str.substr(str.rfind("::") + 2);
return str.substr(0, str.find('>'));
str = str.substr(0, str.find('>'));
return str.substr(str.find('<')+1);
#else
constexpr auto MarkerStart = std::string_view { "E = " };
std::string_view str = REFLECTION_PRETTY_FUNCTION;
Expand Down

0 comments on commit 3e7a41c

Please sign in to comment.