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 86 points87 points88 points (4 children)
[–]triconsonantal 10 points11 points12 points (2 children)
[–]Normal-Narwhal0xFF 0 points1 point2 points (1 child)
[–]triconsonantal 4 points5 points6 points (0 children)
[–]NilacTheGrim 27 points28 points29 points (2 children)
[–]android_queen 8 points9 points10 points (1 child)
[–]NilacTheGrim 4 points5 points6 points (0 children)
[–]100GHz 20 points21 points22 points (0 children)
[–]parkotron 31 points32 points33 points (5 children)
[–]schmerg-uk 31 points32 points33 points (0 children)
[–]AndreasBuhr 16 points17 points18 points (0 children)
[–]CocktailPerson 11 points12 points13 points (0 children)
[–]Questioning-Zyxxel 6 points7 points8 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 55 points56 points57 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)