I forgot that I was accessing x publicly instead of calling the appropriate functions to set it ... which undermined the whole proof.

This commit is contained in:
David Vereb
2017-05-23 17:04:35 -04:00
parent 964db120ff
commit 4daea58b69
3 changed files with 6 additions and 21 deletions

View File

@@ -25,10 +25,9 @@ public:
callback(x, user_data);
return x; // either this was just set by callback, or it was always set by constructor.
}
//private:
private:
int x;
void *user_data;
private:
void (*callback)(int&, void*);
};