Closed kostrzewa closed 7 years ago
In tmLQCD, we use pointers to the abstract classes to hold pointers to the derived classes.
Yes, a virtual destructor is a must for a base class, I should have thought of that. The 1+1 stuff looks promising, I will take of this next, then.
Should be fixed now, I have included a virtual dtor with an empty default implementation.
When using the abstract base classes, QPhiX::EvenOddLinearOperator and QPhiX::AbstractSolver, the lack of virtual destructors leads to severe memory leaks.