Add map .at method from c++11

closes #184
This commit is contained in:
Jason Turner
2015-06-10 18:41:50 -06:00
parent ba492308f4
commit f9e0193353
5 changed files with 34 additions and 2 deletions

View File

@@ -1340,9 +1340,14 @@ namespace chaiscript
}
throw;
}
catch (const std::runtime_error &e) {
retval = handle_exception(t_ss, Boxed_Value(std::ref(e)));
}
catch (const std::out_of_range &e) {
retval = handle_exception(t_ss, Boxed_Value(std::ref(e)));
}
catch (const std::exception &e) {
retval = handle_exception(t_ss, Boxed_Value(std::ref(e)));
}
catch (Boxed_Value &e) {
retval = handle_exception(t_ss, e);