X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fio%2Fseekable.h;h=84a556163e764e40ed837703434a01dfd60fe9a9;hp=99915d850efc3a8879d88a7e9e3e9de7e11eb531;hb=HEAD;hpb=b116e161e377da0e4e52f07745ecb2d22f962ae9 diff --git a/source/io/seekable.h b/source/io/seekable.h index 99915d8..e549d24 100644 --- a/source/io/seekable.h +++ b/source/io/seekable.h @@ -3,6 +3,7 @@ #include #include +#include #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. */