mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Refactor SharedPtr and fix ContainerDeletePolicy bug
This commit is contained in:
@@ -53,7 +53,7 @@ public:
|
||||
// For asio::async_result<>
|
||||
typedef void result_type;
|
||||
|
||||
typedef SharedObjectPtr <SharedHandler> Ptr;
|
||||
typedef SharedPtr <SharedHandler> Ptr;
|
||||
|
||||
virtual void operator() ();
|
||||
virtual void operator() (error_code const&);
|
||||
@@ -92,11 +92,11 @@ private:
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
// For SharedObjectPtr <SharedHandler>
|
||||
// For SharedPtr <SharedHandler>
|
||||
template <>
|
||||
struct ContainerDeletePolicy <SharedHandler>
|
||||
{
|
||||
// SharedObjectPtr will use this when
|
||||
// SharedPtr will use this when
|
||||
// the reference count drops to zero.
|
||||
//
|
||||
inline static void destroy (SharedHandler* handler)
|
||||
|
||||
Reference in New Issue
Block a user