summaryrefslogtreecommitdiffstats
path: root/src/libs/client/OSCClientReceiver.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-10-16 07:28:30 +0000
committerDavid Robillard <d@drobilla.net>2006-10-16 07:28:30 +0000
commitd38458e73cf7dfe02d2ea0ceb050f64df43413b8 (patch)
tree298face3d076487f61a388a85001cc01a26a7d43 /src/libs/client/OSCClientReceiver.h
parentd5049d43809c7546afcc2938791a90c7973d0fc2 (diff)
downloadingen-d38458e73cf7dfe02d2ea0ceb050f64df43413b8.tar.gz
ingen-d38458e73cf7dfe02d2ea0ceb050f64df43413b8.tar.bz2
ingen-d38458e73cf7dfe02d2ea0ceb050f64df43413b8.zip
Used boost::noncopyable to eliminate undefined private copy constructors spread everywhere.
git-svn-id: http://svn.drobilla.net/lad/ingen@182 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/client/OSCClientReceiver.h')
-rw-r--r--src/libs/client/OSCClientReceiver.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/libs/client/OSCClientReceiver.h b/src/libs/client/OSCClientReceiver.h
index 57faec77..0031441f 100644
--- a/src/libs/client/OSCClientReceiver.h
+++ b/src/libs/client/OSCClientReceiver.h
@@ -18,6 +18,7 @@
#define OSCCLIENTRECEIVER_H
#include <cstdlib>
+#include <boost/utility.hpp>
#include <lo/lo.h>
#include "interface/ClientInterface.h"
@@ -54,7 +55,7 @@ inline static int name##_cb(LO_HANDLER_ARGS, void* osc_listener)\
*
* \ingroup IngenClient
*/
-class OSCClientReceiver : virtual public Ingen::Shared::ClientInterface
+class OSCClientReceiver : boost::noncopyable, virtual public Ingen::Shared::ClientInterface
{
public:
OSCClientReceiver(int listen_port);
@@ -71,10 +72,6 @@ public:
string listen_url() { return lo_server_thread_get_url(_st); }
private:
- // Prevent copies
- OSCClientReceiver(const OSCClientReceiver& copy);
- OSCClientReceiver& operator=(const OSCClientReceiver& copy);
-
void setup_callbacks();
static void error_cb(int num, const char* msg, const char* path);