Skip to content

Commit

Permalink
update class.cpp to make code compatible with MSVC (RosettaCommons#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
andriish authored and ldedier-gpfw committed Sep 16, 2024
1 parent 2f0f98c commit 7f2365f
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 7f2365f

Please sign in to comment.