Possible Duplicate:
Why can you return from a non-void function without returning a value without producing a compiler error?
According to the c++ standard what should be the return value of the following function.
bool done()
{
// no return value
}
Run Code Online (Sandbox Code Playgroud)
This would be undefined behavior - anything can happen.