mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 21:25:13 +00:00
Minor clang-tidy fix.
This commit is contained in:
parent
4b872febcc
commit
0e4b38e34d
@ -111,7 +111,7 @@ struct RescuingDeleter {
|
||||
PyWrapper *pyw;
|
||||
explicit RescuingDeleter(PyWrapper *pyw) : pyw{pyw} {}
|
||||
void operator()(ToBeWrapped *raw_ptr) {
|
||||
if (pyw->self.get() != nullptr) {
|
||||
if (pyw->self != nullptr) {
|
||||
#if defined(__cpp_lib_enable_shared_from_this) && (!defined(_MSC_VER) || _MSC_VER >= 1912)
|
||||
assert(raw_ptr->weak_from_this().expired()); // CRITICAL
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user