X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fio%2Fmode.h;h=a643a7f32074782bb863c99959d6d14e1a66f496;hb=99b9121e2158603372c7313400283b622e6754d8;hp=2e7527dc5202d3158895f8c20feb3f90236b17dd;hpb=edeb93fa4182984422f70c453ced8ad3acabe1d0;p=libs%2Fcore.git diff --git a/source/io/mode.h b/source/io/mode.h index 2e7527d..a643a7f 100644 --- a/source/io/mode.h +++ b/source/io/mode.h @@ -13,7 +13,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) @@ -33,7 +34,7 @@ class invalid_access: public std::logic_error { public: invalid_access(Mode); - ~invalid_access() throw() { } + virtual ~invalid_access() throw() = default; }; } // namespace IO