mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-06 18:56:19 +08:00
Made sure that struct names can be retrieved on MSVC
This commit is contained in:
@@ -23,7 +23,7 @@ std::string get_struct_name_impl() {
|
||||
if (begin == std::string::npos) {
|
||||
return "AnonymousStruct";
|
||||
}
|
||||
const size_t end = func_name.find_first_of("])};", begin);
|
||||
const size_t end = func_name.find_first_of("])}>;", begin);
|
||||
if (end == std::string::npos) {
|
||||
return "AnonymousStruct";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user