Skip to content

Commit bce2247

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/reflection-cpp/reflection.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ 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+
return str.substr(str.find('<'), str.find('>'));
676676
#else
677677
constexpr auto MarkerStart = std::string_view { "E = " };
678678
std::string_view str = REFLECTION_PRETTY_FUNCTION;

0 commit comments

Comments
 (0)