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;
}

Reply via email to