Use correct polymorphic downcast.

This commit is contained in:
JoelKatz
2013-02-26 06:33:56 -08:00
parent d3a485802d
commit 33dafca31a

View File

@@ -2516,7 +2516,8 @@ Json::Value RPCHandler::doSubscribe(Json::Value jvRequest)
{
cLog(lsDEBUG) << boost::str(boost::format("doSubscribe: building: %s") % strUrl);
ispSub = mNetOps->addRpcSub(strUrl, boost::make_shared<RPCSub>(strUrl, strUsername, strPassword));
RPCSub::pointer rspSub = boost::make_shared<RPCSub>(strUrl, strUsername, strPassword);
ispSub = mNetOps->addRpcSub(strUrl, boost::shared_polymorphic_downcast<InfoSub>(rspSub));
}
else
{