![](/img/trans.png)
[英]Why does the deleting destructor occupy a second vtable slot besides the ordinary destructor?
在以Itanium C++ ABI為模型的 C++ ABI 實現中,隨后是許多用於其他處理器的 ABI,虛擬析構函數實際上占用了兩個 vtable 插槽。 除了“完整的對象析構函數”,它執行您所期望的操作,還有“刪除析構函數”的第二個條目,它調用第一個,然后刪除對象的內存。 這種方法有一個問題,它 ...