Merge pull request #51095 from RandomShaper/error_cast_freed_object_3.x

[3.x] Complain if casting a freed object in a debug session
This commit is contained in:
Rémi Verschelde
2021-09-14 22:40:17 +02:00
committed by GitHub
3 changed files with 33 additions and 0 deletions

View File

@ -192,6 +192,8 @@ public:
bool is_zero() const;
bool is_one() const;
ObjectID get_object_instance_id() const;
operator bool() const;
operator signed int() const;
operator unsigned int() const; // this is the real one