Commit b90e68de by Wenzel Jakob

another corner case (fixes #151)

parent 08927e98
...@@ -356,7 +356,8 @@ public: ...@@ -356,7 +356,8 @@ public:
return handle(Py_None).inc_ref(); return handle(Py_None).inc_ref();
} }
operator void *() { return value; } template <typename T> using cast_op_type = void*&;
operator void *&() { return value; }
private: private:
void *value = nullptr; void *value = nullptr;
}; };
......
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