]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/seek.cpp
Rework exceptions for IO
[libs/core.git] / source / io / seek.cpp
index b10c5a0c27aa966add8703e739da11d0819efff2..c0b65cabb30cd16dbf2bfaa2ee192d04fe861e83 100644 (file)
@@ -1,9 +1,11 @@
 #ifdef WIN32
 #include <windows.h>
 #endif
-#include "except.h"
+#include <stdexcept>
 #include "seek.h"
 
+using namespace std;
+
 namespace Msp {
 namespace IO {
 
@@ -25,7 +27,7 @@ int sys_seek_type(SeekType st)
                return SEEK_END;
 #endif
 
-       throw InvalidParameterValue("Invalid seek type");
+       throw invalid_argument("Invalid seek type");
 }
 
 } // namespace IO