simendsjo:
See topic. Why is this not allowed? The function in question is
not virtual.
struct S {
void someFunction() const {}
const invariant() { someFunction(); }
}
void main() {
S s;
}
It being not virtual is not important. In what cases is invariant() called, simendsjo? I sense an infinite loop.
Bye, bearophile
