Replace InstanceCounter with CountedObject

This commit is contained in:
Vinnie Falco
2013-06-17 17:45:33 -07:00
parent abce930b8b
commit 2abec05b5b
53 changed files with 321 additions and 334 deletions

View File

@@ -11,10 +11,6 @@ SETUP_LOG (Peer)
class PeerImp;
DEFINE_INSTANCE (PeerImp);
DECLARE_INSTANCE (PeerImp);
// Don't try to run past receiving nonsense from a peer
#define TRUST_NETWORK
@@ -25,7 +21,7 @@ DECLARE_INSTANCE (PeerImp);
#define NODE_IDLE_SECONDS 120
class PeerImp : public Peer
, public IS_INSTANCE (PeerImp)
, public CountedObject <PeerImp>
{
public:
PeerImp (boost::asio::io_service & io_service,