Code:
void Test::init()
{
static int times_called = 0;
++times_called;
// This should never happen!
assert(times_called > 1);
}
I only have one single call to the init function in the code, and I still get this:
Code:
Assertion failed: (times_called > 1), function init, file ...
Program received signal: “SIGABRT”.
mi_cmd_stack_list_frames: Not enough frames in stack.
mi_cmd_stack_list_frames: Not enough frames in stack.
Can't you use static variables like this inside class member functions?
EDIT: Even without the assert I still get the "not enough frames" error.