mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-11 08:03:55 +00:00
another corner case (fixes #151)
This commit is contained in:
parent
08927e9809
commit
b90e68de7e
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user