]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/base.h
Add move semantics to Variant
[libs/core.git] / source / io / base.h
index 1a1485efc67d752a6e893d6cdb6dd605f78b362f..92c860d266f1923d275c6f568ef99c4a0e715863 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <cstddef>
 #include <sigc++/sigc++.h>
+#include <msp/core/mspcore_api.h>
 #include <msp/core/mutex.h>
 #include <msp/core/noncopyable.h>
 #include "handle.h"
@@ -15,7 +16,7 @@ namespace IO {
 /**
 Common interface for all I/O objects.
 */
-class Base: private NonCopyable
+class MSPCORE_API Base: private NonCopyable
 {
 public:
        /** RAII synchronization primitive.  Prevents concurrent access to the
@@ -44,7 +45,7 @@ public:
 protected:
        Mode mode = M_READ;
        bool eof_flag = false;
-       Mutex *mutex = 0;
+       Mutex *mutex = nullptr;
 
        Base();
 public: