remove useless ctor (#3989)

This commit is contained in:
Aaron Gokaslan 2022-06-03 15:18:06 -04:00 committed by GitHub
parent a05bc3d235
commit 42a41bf3e7
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>();
} }
}; };