Skip to content

Commit

Permalink
update class.cpp to make code compatible with MSVC (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
andriish authored Apr 12, 2024
1 parent 0b961f2 commit b9f309e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/class.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit b9f309e

Please sign in to comment.