mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Improvements to TestPeer and PeerTest classes
This commit is contained in:
@@ -644,4 +644,15 @@ public:
|
||||
Object* m_impl;
|
||||
};
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
/** Dynamically allocate a SocketWrapper.
|
||||
This deduces the template arguments for convenience.
|
||||
*/
|
||||
template <typename Object>
|
||||
SocketWrapper <Object>* newSocketWrapper (Object& object)
|
||||
{
|
||||
return new SocketWrapper <Object> (object);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user