From 4e68bf298f9fe4445925b4fe39f28e364a216fd2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 16 Oct 2006 07:28:30 +0000 Subject: Used boost::noncopyable to eliminate undefined private copy constructors spread everywhere. git-svn-id: http://svn.drobilla.net/lad/raul@182 a436a847-0d15-0410-975c-d299462d15a1 --- raul/Queue.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'raul/Queue.h') diff --git a/raul/Queue.h b/raul/Queue.h index 071ed4e..36d1cca 100644 --- a/raul/Queue.h +++ b/raul/Queue.h @@ -19,6 +19,7 @@ #include #include +#include /** Realtime-safe single-reader single-writer queue (aka lock-free ringbuffer) @@ -32,7 +33,7 @@ * \ingroup raul */ template -class Queue +class Queue : boost::noncopyable { public: Queue(size_t size); @@ -50,10 +51,6 @@ public: inline T& pop(); private: - // Prevent copies (these are undefined) - Queue(const Queue& copy); - Queue& operator=(const Queue& copy); - volatile size_t m_front; ///< Index to front of queue (circular) volatile size_t m_back; ///< Index to back of queue (one past last element) (circular) const size_t m_size; ///< Size of @ref m_objects (you can store m_size-1 objects) -- cgit v1.2.1