]> git.tdb.fi Git - libs/core.git/blob - source/io/mode.cpp
Fix an overload resolution problem in formatting values for key_error
[libs/core.git] / source / io / mode.cpp
1 #include "mode.h"
2
3 using namespace std;
4
5 namespace Msp {
6 namespace IO {
7
8 invalid_access::invalid_access(Mode m):
9         logic_error(m==M_READ ? "read" :
10                 m==M_WRITE ? "write" :
11                 m==M_RDWR ? "read-write" :
12                 "generic")
13 { }
14
15 } // namespace IO
16 } // namespace Msp