X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fio%2Fbase.h;h=b6d1ff65a2a83f1b793d10fb5a4d36fd9f966efa;hp=a6a8827c6d4c28ee981806c4284af063b96de8dd;hb=c3e242c2629cbc9645258b30aaf07b7285d4372b;hpb=3169ab5078b0ab9147b8e23ad98c0294dda1baec diff --git a/source/io/base.h b/source/io/base.h index a6a8827..b6d1ff6 100644 --- a/source/io/base.h +++ b/source/io/base.h @@ -3,6 +3,7 @@ #include #include +#include #include "handle.h" #include "mode.h" #include "poll.h" @@ -13,7 +14,7 @@ namespace IO { /** Common interface for all I/O objects. */ -class Base +class Base: private NonCopyable { public: /** RAII synchronization primitive. Prevents concurrent access to the @@ -45,9 +46,6 @@ protected: Mutex *mutex; Base(); -private: - Base(const Base &); - Base &operator=(const Base &); public: virtual ~Base();