When someone says that you cannot get a pointer to a destructor, it means that there is no syntax for this at the source code level. But under the hood, the destructor is still a normal function, which is usually accessed through a pointer stored in a virtual table.
In other words, it is you who cannot get such a pointer. The compiler itself has no problems getting it. License Quod Iovi non licet bovi.
source share