Add std::exception as a base clase off std::runtime_error and provide unit test for it.

This commit is contained in:
Jason Turner
2011-03-09 21:39:21 -07:00
committed by lefticus@gmail.com
parent 0b97fcb4df
commit d9a92a5148
3 changed files with 28 additions and 0 deletions

View File

@@ -581,6 +581,9 @@ namespace chaiscript
m->add(user_type<std::runtime_error>(), "runtime_error");
m->add(chaiscript::base_class<std::exception, std::runtime_error>());
m->add(constructor<std::runtime_error (const std::string &)>(), "runtime_error");
m->add(fun(boost::function<std::string (const std::runtime_error &)>(&what)), "what");