Provide some hints for dispatches with lhs (first param) that is const

This commit is contained in:
Jason Turner
2009-11-21 06:02:17 +00:00
parent 95c124ca35
commit 1c6b2725b3
2 changed files with 7 additions and 2 deletions

View File

@@ -496,6 +496,11 @@ namespace chaiscript
{
}
dispatch_error(bool is_const) throw()
: std::runtime_error(std::string("No matching function to dispatch to") + (is_const?", parameter is const":""))
{
}
virtual ~dispatch_error() throw() {}
};
@@ -526,7 +531,7 @@ namespace chaiscript
++begin;
}
throw dispatch_error();
throw dispatch_error(plist.empty()?false:plist[0].is_const());
}
/**