Skip to content

Commit

Permalink
Update class.cpp to make code compatible with MSVC
Browse files Browse the repository at this point in the history
Update class.cpp to make code compatible with MSVC
  • Loading branch information
andriish authored Apr 9, 2024
1 parent 95acfe9 commit 1034979
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 (return_type.rfind("class ", 0) == 0) 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 1034979

Please sign in to comment.