Use the correct downcast.

This commit is contained in:
JoelKatz
2013-02-26 06:30:37 -08:00
parent 380523a462
commit 8d25b67ad9

View File

@@ -103,7 +103,7 @@ public:
return jvResult; return jvResult;
} }
RPCHandler mRPCHandler(&mNetwork, this->shared_from_this()); RPCHandler mRPCHandler(&mNetwork, boost::shared_polymorphic_downcast<InfoSub>(this->shared_from_this()));
Json::Value jvResult(Json::objectValue); Json::Value jvResult(Json::objectValue);
int iRole = mHandler->getPublic() int iRole = mHandler->getPublic()