Hello, can someone answer my question : how can I call a bool function from another function? I am trying if (!Class::function()) { cout << "error "; exit(-1);  } but it is not working it prints error