X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fio%2Fmode.h;h=565eb0fb90043fdd1b9873ebe41942436aa00fbc;hp=2e7527dc5202d3158895f8c20feb3f90236b17dd;hb=HEAD;hpb=edeb93fa4182984422f70c453ced8ad3acabe1d0 diff --git a/source/io/mode.h b/source/io/mode.h index 2e7527d..6230a65 100644 --- a/source/io/mode.h +++ b/source/io/mode.h @@ -2,6 +2,7 @@ #define MSP_IO_MODE_H_ #include +#include namespace Msp { namespace IO { @@ -13,7 +14,8 @@ enum Mode M_WRITE = 2, M_RDWR = M_READ|M_WRITE, M_APPEND = 4, - M_NONBLOCK = 8 + M_NONBLOCK = 8, + M_INHERIT = 16 }; inline Mode operator|(Mode m, Mode n) @@ -29,11 +31,10 @@ inline void adjust_mode(Mode &m, Mode f, bool b) { m = b ? (m|f) : (m&~f); } -class invalid_access: public std::logic_error +class MSPCORE_API invalid_access: public std::logic_error { public: invalid_access(Mode); - ~invalid_access() throw() { } }; } // namespace IO