S
sam
Hi,
I m using BSD stl with g++ compiler.
The following code dos not throw exception if the input file is not exist:
try {
fin.open(f, ios::in);
}
catch (std::exception& e)
{
cout << "Exception: " << e.what();
}
How can I correct this problem?
I have the following includes in the .hh file:
#include <iostream>
#include <string>
#include <fstream>
#include <exception>
Thanks
Sam.
I m using BSD stl with g++ compiler.
The following code dos not throw exception if the input file is not exist:
try {
fin.open(f, ios::in);
}
catch (std::exception& e)
{
cout << "Exception: " << e.what();
}
How can I correct this problem?
I have the following includes in the .hh file:
#include <iostream>
#include <string>
#include <fstream>
#include <exception>
Thanks
Sam.