another corner case (fixes #151)

This commit is contained in:
Wenzel Jakob 2016-03-27 00:19:32 +01:00
parent 08927e9809
commit b90e68de7e
1 changed files with 2 additions and 1 deletions

View File

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