Hi,
I have a strange problem that an exception thrown by a boost::filesystem directory_iterator is not caugth on MacOS X. Please consider the following code:
("const string &dir" is a parameter)
bool retVal = true;
try
{
directory_iterator i(dir);
directory_iterator end;
while (i != end)
{
// do something
++i;
}
} catch (...)
{
retVal = false;
}
While this works perfectly on Windows and Linux (the exception is caught fine), on MacOS I get the following:
terminate called after throwing an instance of 'boost::filesystem::basic_filesystem_error