1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-15 01:24:45 +02:00

Some compile fixes.

This commit is contained in:
Frank Zago
2011-05-27 13:49:18 +00:00
parent 7962a9bc47
commit abc0d3537e
3 changed files with 5 additions and 5 deletions

View File

@ -653,7 +653,7 @@ struct StandardReceiverVisitor : boost::static_visitor<>
{
ERM::TBodyOptionItem boi = params[0];
boost::apply_visitor(
OptionPerformer(*const_cast<OptionPerformer::TReceiverType*>(static_cast<const OptionPerformer::TReceiverType*>(this))), boi);
OptionPerformer(*const_cast<typename OptionPerformer::TReceiverType*>(static_cast<const typename OptionPerformer::TReceiverType*>(this))), boi);
}
else
throw EScriptExecError("This receiver option takes exactly 1 parameter!");
@ -671,7 +671,7 @@ struct StandardReceiverVisitor : boost::static_visitor<>
{
case 0:
boost::apply_visitor(
OptionPerformer<0>(*const_cast<OptionPerformer<0>::TReceiverType*>(static_cast<const OptionPerformer<0>::TReceiverType*>(this))), boi);
OptionPerformer<0>(*const_cast<typename OptionPerformer<0>::TReceiverType*>(static_cast<const typename OptionPerformer<0>::TReceiverType*>(this))), boi);
break;
default:
throw EScriptExecError("Wrong number of option code!");

View File

@ -551,6 +551,6 @@ public:
if(obj)
return obj;
else
throw EScriptExecError("Wrong cast attempted, object is not of a desired type!");
throw VERMInterpreter::EScriptExecError("Wrong cast attempted, object is not of a desired type!");
}
};