Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update class.cpp to avoid compiler warnings #285

Merged
merged 1 commit into from
Mar 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/class.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ bool is_callback_structure_constructible(CXXRecordDecl const *C)
return true;
}


/*
// call_back_function_body_template is almost like PYBIND11_OVERLOAD_INT but specify pybind11::return_value_policy::reference
// #define PYBIND11_OVERLOAD_INT(ret_type, cname, name, ...) { \
// pybind11::gil_scoped_acquire gil; \
Expand All @@ -681,7 +681,7 @@ bool is_callback_structure_constructible(CXXRecordDecl const *C)
// else return pybind11::detail::cast_safe<ret_type>(std::move(o)); \
// } \
// }

*/

const char *call_back_function_body_template = R"_(
pybind11::gil_scoped_acquire gil;
Expand Down
Loading