mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-02 00:45:58 +00:00
Replace boost::bind with BIND_TYPE where appropriate
This commit is contained in:
@@ -26,6 +26,30 @@
|
||||
|
||||
#include "system/ripple_OpenSSLIncludes.h"
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
// From
|
||||
// http://stackoverflow.com/questions/4682343/how-to-resolve-conflict-between-boostshared-ptr-and-using-stdshared-ptr
|
||||
//
|
||||
#if __cplusplus > 201100L
|
||||
namespace boost
|
||||
{
|
||||
template <class T>
|
||||
const T* get_pointer (std::shared_ptr<T> const& ptr)
|
||||
{
|
||||
return ptr.get();
|
||||
}
|
||||
|
||||
template <class T>
|
||||
T* get_pointer (std::shared_ptr<T>& ptr)
|
||||
{
|
||||
return ptr.get();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
// ByteOrder
|
||||
#ifdef WIN32
|
||||
// (nothing)
|
||||
|
||||
Reference in New Issue
Block a user