]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/seekable.h
Add move semantics to Variant
[libs/core.git] / source / io / seekable.h
index 99915d850efc3a8879d88a7e9e3e9de7e11eb531..e549d24c5dd7b8a0527b4cb9fc4e039ce887ad91 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <cstdint>
 #include <stdexcept>
+#include <msp/core/mspcore_api.h>
 #include "base.h"
 
 namespace Msp {
@@ -20,18 +21,18 @@ enum SeekType
 };
 
 
-class bad_seek: public std::runtime_error
+class MSPCORE_API bad_seek: public std::runtime_error
 {
 public:
        bad_seek(SeekOffset, SeekType);
-       virtual ~bad_seek() throw() { }
+       ~bad_seek() throw() override = default;
 };
 
 
-class Seekable: public Base
+class MSPCORE_API Seekable: public Base
 {
 protected:
-       Seekable() { }
+       Seekable() = default;
 
 public:
        /** Changes the read/write offset.  Returns the new offset. */