Fix warnings and errors on VisualStudio 2013

Interestingly, VS2013 with Boost 1.55 exhibited the issues complained
about in issue #92, so I was able to provide an appropriate fix. It would
appear to be bugs in both compilers, which seems very odd.
This commit is contained in:
Jason Turner
2014-02-22 16:09:34 -07:00
parent 04131d208b
commit af44da916a
5 changed files with 43 additions and 4 deletions

View File

@@ -279,7 +279,11 @@ namespace chaiscript
boost::shared_ptr<const dispatch::Dynamic_Proxy_Function> pf = boost::dynamic_pointer_cast<const dispatch::Dynamic_Proxy_Function>(t_pf);
if (pf)
{
return pf->get_guard();
if (pf->get_guard()) {
return true;
} else {
return false;
}
} else {
return false;
}