There was an error while loading. Please reload this page.
1 parent 02d8566 commit 7b6ab5fCopy full SHA for 7b6ab5f
1 file changed
include/rfl/internal/cpp20/get_member_ptr_name.hpp
@@ -37,12 +37,9 @@ consteval auto get_member_ptr_name_str_view() {
37
return split.substr(split.find_last_of(":.") + 1);
38
#elif defined(_MSC_VER)
39
auto split = func_name.substr(0, func_name.size() - 7);
40
- split = split.substr(split.find("get_member_ptr_name_str_view<") + 29);
41
- auto pos1 = split.find_last_of(":");
42
- auto pos2 = split.find_last_of(">");
43
- if (pos1 != std::string_view::npos && pos2 != std::string_view::npos &&
44
- pos2 > pos1) {
45
- return split.substr(pos1 + 1, pos2);
+ auto pos = split.find_last_of(":");
+ if (pos != std::string_view::npos) {
+ return split.substr(pos + 1);
46
}
47
return split;
48
#else
0 commit comments