]> git.tdb.fi Git - libs/core.git/blob - source/io/seekable.cpp
Remove deprecated things
[libs/core.git] / source / io / seekable.cpp
1 #include <msp/strings/format.h>
2 #include "seekable.h"
3
4 using namespace std;
5
6 namespace Msp {
7 namespace IO {
8
9 bad_seek::bad_seek(SeekOffset offset, SeekType type):
10         runtime_error(type==S_BEG ? lexical_cast<string>(offset) :
11                 type==S_CUR ? format("CUR%+d", offset) :
12                 type==S_END ? format("END%+d", offset) :
13                 format("SeekType(%d)", type))
14 { }
15
16 } // namespace IO
17 } // namespace Msp