Make Uncopyable derivations public

This commit is contained in:
Vinnie Falco
2013-08-06 10:42:30 -07:00
parent cc9358ee95
commit 9aaaa6aef0
73 changed files with 105 additions and 106 deletions

View File

@@ -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:
//==============================================================================

View File

@@ -82,7 +82,7 @@ namespace HeapBlockHelper
@see Array, OwnedArray, MemoryBlock
*/
template <class ElementType, bool throwOnFailure = false>
class HeapBlock : Uncopyable
class HeapBlock : public Uncopyable
{
public:
//==============================================================================

View File

@@ -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();

View File

@@ -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:
//==============================================================================

View File

@@ -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). */

View File

@@ -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 {}