Commit 42a41bf3 by Aaron Gokaslan Committed by GitHub

remove useless ctor (#3989)

parent a05bc3d2
...@@ -99,7 +99,7 @@ public: ...@@ -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>();
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment