mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2026-10-11 08:38:05 +01:00
more robust type cast in I/O functions
This commit is contained in:
1 parent
64936d551c
commit
0bd347d010
3 files changed
+8
-2
No files matched your search
@@ -187,7 +187,7 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
process<DSample>(outFileName, fileName, code);
|
||||
}
|
||||
catch (bad_cast &e)
|
||||
catch (Exceptions::Definition)
|
||||
{
|
||||
process<DMatSample>(outFileName, fileName, code);
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ int main(int argc, char *argv[])
|
||||
Io::save(s, copy, File::Mode::write, name);
|
||||
}
|
||||
}
|
||||
catch (bad_cast &e)
|
||||
catch (Exceptions::Definition)
|
||||
{
|
||||
DSample s = Io::load<DSample>(fileName);
|
||||
string name = Io::getFirstName(fileName);
|
||||
|
||||
Reference in new issue
Block a user