fficxx
fficxx copied to clipboard
Name conflict due to ambigious Destructor
Destructor introduces a virtual method delete.
But since every deletable class has the method, we have a big name conflict.
We had better revert old IDeletable superclass.
A workaround now is to define an abstract class Deletable explicitly and make every class its subclass.
See https://github.com/wavewave/hs-ogdf/commit/990df1baca6d25a451c85b4c1edfc2b513b79d86
deletable approach works really well. and now I put IDeletable in stdcxx as a common dependency.
By the way, not all C++ classes are deletable since some define destructor as a private method. We can control this by just not inheriting IDeletable.
delete function name for ordinary class and template class is not consistent.
For ordinary class, it's delete.
For template class T, it's deleteT.