mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Use deleted members to prevent copying in Beast (RIPD-268)
This commit is contained in:
committed by
Vinnie Falco
parent
cd97b5beec
commit
60330da25c
@@ -27,7 +27,6 @@
|
||||
#include <atomic>
|
||||
|
||||
#include <beast/Config.h>
|
||||
#include <beast/Uncopyable.h>
|
||||
|
||||
namespace beast {
|
||||
|
||||
@@ -63,7 +62,7 @@ namespace beast {
|
||||
|
||||
@see SharedPtr, SharedObjectArray, SingleThreadedSharedObject
|
||||
*/
|
||||
class SharedObject : public Uncopyable
|
||||
class SharedObject
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
@@ -99,6 +98,9 @@ protected:
|
||||
{
|
||||
}
|
||||
|
||||
SharedObject (SharedObject const&) = delete;
|
||||
SharedObject& operator= (SharedObject const&) = delete;
|
||||
|
||||
/** Destructor. */
|
||||
virtual ~SharedObject()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user