In this answer I talk about using a std::ifstream object\'s conversion to bool to test whether the stream is still in a good state. I looked in th
std::ifstream
bool
The newest C++11 requires that:
explicit operator bool() const;
See C++11 27.5.5.4-1. The 'explicit' seems odd to me, though.