BugFix test number string

This commit is contained in:
Bruno Herbelin
2022-07-27 23:33:36 +02:00
parent 1a2471a32d
commit 867cd7e583

View File

@@ -204,6 +204,9 @@ bool BaseToolkit::is_a_number(const std::string& str, int *val)
catch (const std::invalid_argument&) { catch (const std::invalid_argument&) {
// avoids crash // avoids crash
} }
catch (const std::out_of_range&) {
// avoids crash
}
return isanumber; return isanumber;
} }