another corner case (fixes #151)

This commit is contained in:
Wenzel Jakob 2016-03-27 00:19:32 +01:00
parent 08927e9809
commit b90e68de7e

View File

@ -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;
}; };