X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fio%2Fbase.h;h=b6d1ff65a2a83f1b793d10fb5a4d36fd9f966efa;hp=a6a8827c6d4c28ee981806c4284af063b96de8dd;hb=be8ea216d23bf36bdfb2d3e302638782575fc136;hpb=ea8bf8f588310b0d7fd3297d74907602705bba1d 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();