[haiku-development] Review request for AutoDeleter changes

  • From: "X512" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "danger_mail" for DMARC)
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 7 Dec 2020 15:52:32 +0900

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.

Other related posts:

  • » [haiku-development] Review request for AutoDeleter changes - X512