Skip to content

Commit 3e7a41c

Browse files
committed
fix get name on windows
1 parent 83b554a commit 3e7a41c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/reflection-cpp/reflection.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,8 @@ consteval auto GetName()
672672
#if defined(_MSC_VER) && !defined(__clang__)
673673
std::string_view str = REFLECTION_PRETTY_FUNCTION;
674674
str = str.substr(str.rfind("::") + 2);
675-
return str.substr(0, str.find('>'));
675+
str = str.substr(0, str.find('>'));
676+
return str.substr(str.find('<')+1);
676677
#else
677678
constexpr auto MarkerStart = std::string_view { "E = " };
678679
std::string_view str = REFLECTION_PRETTY_FUNCTION;

0 commit comments

Comments
 (0)