Merge branch 'pybind:master' into master

This commit is contained in:
Steve R. Sun 2022-06-04 19:40:15 +08:00 committed by GitHub
commit e9a70ce059
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,7 +99,7 @@ public:
Return operator()(Args... args) const { Return operator()(Args... args) const {
gil_scoped_acquire acq; gil_scoped_acquire acq;
// casts the returned object as a rvalue to the return type // casts the returned object as a rvalue to the return type
return object(hfunc.f(std::forward<Args>(args)...)).template cast<Return>(); return hfunc.f(std::forward<Args>(args)...).template cast<Return>();
} }
}; };