mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-05 16:57:56 +00:00
Make Uncopyable derivations public
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
/** Contains static methods for converting the byte order between different
|
||||
endiannesses.
|
||||
*/
|
||||
class BEAST_API ByteOrder : Uncopyable
|
||||
class BEAST_API ByteOrder : public Uncopyable
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
|
||||
@@ -82,7 +82,7 @@ namespace HeapBlockHelper
|
||||
@see Array, OwnedArray, MemoryBlock
|
||||
*/
|
||||
template <class ElementType, bool throwOnFailure = false>
|
||||
class HeapBlock : Uncopyable
|
||||
class HeapBlock : public Uncopyable
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
|
||||
@@ -65,7 +65,7 @@ inline Type* createCopyIfNotNull (const Type* pointer) { return pointer != n
|
||||
/** A handy C++ wrapper that creates and deletes an NSAutoreleasePool object using RAII.
|
||||
You should use the BEAST_AUTORELEASEPOOL macro to create a local auto-release pool on the stack.
|
||||
*/
|
||||
class BEAST_API ScopedAutoReleasePool : Uncopyable
|
||||
class BEAST_API ScopedAutoReleasePool : public Uncopyable
|
||||
{
|
||||
public:
|
||||
ScopedAutoReleasePool();
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
you'd need to return a raw pointer (or use a std::auto_ptr instead).
|
||||
*/
|
||||
template <class ObjectType>
|
||||
class ScopedPointer : Uncopyable
|
||||
class ScopedPointer : public Uncopyable
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
|
||||
@@ -88,7 +88,6 @@ public:
|
||||
/** Returns the object's current reference count. */
|
||||
inline int getReferenceCount() const noexcept { return refCount.get(); }
|
||||
|
||||
|
||||
protected:
|
||||
//==============================================================================
|
||||
/** Creates the reference-counted object (with an initial ref count of zero). */
|
||||
|
||||
@@ -130,7 +130,7 @@ public:
|
||||
*/
|
||||
class SharedPointer
|
||||
: public ReferenceCountingType
|
||||
, Uncopyable
|
||||
, public Uncopyable
|
||||
{
|
||||
public:
|
||||
explicit SharedPointer (ObjectType* const obj) noexcept : owner (obj) {}
|
||||
@@ -150,7 +150,7 @@ public:
|
||||
See the WeakReference class notes for an example of how to use this class.
|
||||
@see WeakReference
|
||||
*/
|
||||
class Master : Uncopyable
|
||||
class Master : public Uncopyable
|
||||
{
|
||||
public:
|
||||
Master() noexcept {}
|
||||
|
||||
Reference in New Issue
Block a user