I published [1] changes to AutoDeleter that fix double *Deleter class
size compared to pointer (#16638). I also changed CObjectDeleter
interface to set destructor in type declaration, not in class
constructor. This allows to use typedef's to CObjectDeleter that include
destructor function. Also I made AutoDeleter and CObjectDeleter to
accept type with pointer instead of automatically adding pointer. This
is needed for some libraries (for example libfreetype and FT_Face)
because it declares public types with pointer included.
Code using *Deleter has been adjusted and it is compiling under GCC2 and
GCC4+.
[1] https://review.haiku-os.org/c/haiku/+/3455 and another in relation
chain.
If someone has objections, please say.