mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-29 00:22:00 +00:00
minor fix for PYBIND11_OBJECT_CVT
This commit is contained in:
parent
5f218b3f2c
commit
2ca07de83c
@ -228,7 +228,7 @@ inline iterator handle::end() const { return iterator(nullptr); }
|
||||
Name(const handle &h, bool borrowed) : Parent(h, borrowed) { CvtStmt; } \
|
||||
Name(const object& o): Parent(o) { CvtStmt; } \
|
||||
Name(object&& o): Parent(std::move(o)) { CvtStmt; } \
|
||||
Name& operator=(object&& o) { return static_cast<Name&>(object::operator=(std::move(o))); CvtStmt; } \
|
||||
Name& operator=(object&& o) { (void) static_cast<Name&>(object::operator=(std::move(o))); CvtStmt; return *this; } \
|
||||
Name& operator=(object& o) { return static_cast<Name&>(object::operator=(o)); CvtStmt; } \
|
||||
bool check() const { return m_ptr != nullptr && (bool) CheckFun(m_ptr); }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user