ios::fail() is a more general test than bad()

This commit is contained in:
Laurent Rineau 2010-06-28 10:57:58 +00:00
parent ae34a83cf1
commit a528e215dc
1 changed files with 1 additions and 1 deletions

View File

@ -397,7 +397,7 @@ public:
} else
m_in >> index;
if( m_in.bad()) {
if( m_in.fail()) {
if ( verbose()) {
std::cerr << " " << std::endl;
std::cerr << "File_scanner_OFF::" << std::endl;