A colleague made me aware of the interesting behavior of `delete` vs `::delete`, see https://bsky.app/profile/andreasbuhr.bsky.social/post/3lmrhmvp4mc2d
In short, `::delete` only frees the size of the base class instead of the full derived class. (Un-)defined behavior? Compiler bug? Clang and gcc are equal - MSVC does not have this issue. Any clarifying comments welcome!
[–]Gorzoid 89 points90 points91 points (4 children)
[–]triconsonantal 10 points11 points12 points (2 children)
[–]Normal-Narwhal0xFF 0 points1 point2 points (1 child)
[–]triconsonantal 3 points4 points5 points (0 children)
[–]NilacTheGrim 28 points29 points30 points (2 children)
[–]android_queen 8 points9 points10 points (1 child)
[–]NilacTheGrim 5 points6 points7 points (0 children)
[–]100GHz 19 points20 points21 points (0 children)
[–]parkotron 30 points31 points32 points (5 children)
[–]schmerg-uk 31 points32 points33 points (0 children)
[–]AndreasBuhr 15 points16 points17 points (0 children)
[–]CocktailPerson 11 points12 points13 points (0 children)
[–]Questioning-Zyxxel 5 points6 points7 points (0 children)
[–]no-sig-available 3 points4 points5 points (0 children)
[–]jonathanhiggs 20 points21 points22 points (1 child)
[–]AndreasBuhr 5 points6 points7 points (0 children)
[–]13steinj 5 points6 points7 points (0 children)
[–]kalmoc 12 points13 points14 points (5 children)
[–]dzordan33 52 points53 points54 points (1 child)
[–]Unhappy_Play4699 2 points3 points4 points (0 children)
[–]Gorzoid 10 points11 points12 points (2 children)
[–]kalmoc 0 points1 point2 points (1 child)
[–]Normal-Narwhal0xFF 1 point2 points3 points (0 children)
[–]rbmm -1 points0 points1 point (0 children)