Enable exceptions before opening the stream: m_ifs.exceptions ( std::ifstream::failbit | std::ifstream::badbit );. Otherwise m_ifs.open won't throw.
確定! 回上一頁