Add std::exception as a base clase off std::runtime_error and provide unit test for it.
This commit is contained in:

committed by
lefticus@gmail.com

parent
0b97fcb4df
commit
d9a92a5148
@@ -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");
|
||||
|
||||
|
Reference in New Issue
Block a user