Change shared_polymorphic_downcast to dynamic_pointer_cast.

This commit is contained in:
JoelKatz
2013-05-01 22:22:51 -07:00
parent 3ec116f5bf
commit 407a43aea9
4 changed files with 8 additions and 4 deletions

View File

@@ -3,6 +3,7 @@
#include <boost/foreach.hpp>
#include <boost/make_shared.hpp>
#include <boost/pointer_cast.hpp>
#include "Application.h"
#include "Log.h"
@@ -279,7 +280,7 @@ void LedgerAcquire::addPeers()
boost::weak_ptr<PeerSet> LedgerAcquire::pmDowncast()
{
return boost::shared_polymorphic_downcast<PeerSet>(shared_from_this());
return boost::dynamic_pointer_cast<PeerSet>(shared_from_this());
}
static void LADispatch(