• Jason Rhinelander's avatar
    Add support custom sized operator deletes (#952) · a03408c8
    Jason Rhinelander authored
    If a class doesn't provide a `T::operator delete(void *)` but does have
    a `T::operator delete(void *, size_t)` the latter is invoked by a
    `delete someT`.  Pybind currently only look for and call the former;
    this commit adds detection and calling of the latter when the former
    doesn't exist.
    a03408c8
test_class.cpp 12.1 KB