From b9f309e0513e745a7465571321e87595fa33d195 Mon Sep 17 00:00:00 2001 From: andriish Date: Fri, 12 Apr 2024 22:02:16 +0200 Subject: [PATCH] update class.cpp to make code compatible with MSVC (#299) --- source/class.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/class.cpp b/source/class.cpp index b4039869..610e078c 100644 --- a/source/class.cpp +++ b/source/class.cpp @@ -752,6 +752,7 @@ string bind_member_functions_for_call_back(CXXRecordDecl const *C, string const if( return_type.find(',') != std::string::npos ) { string return_type_alias = "_binder_ret_" + std::to_string(ret_id); ++ret_id; + if (begins_with(return_type,"class ")) return_type = return_type.substr(6); c += "\tusing {} = {};\n"_format(return_type_alias, return_type); return_type = std::move(return_type_alias); }