From 59551e0aeeb69307c750ee4092fd175a289cfb18 Mon Sep 17 00:00:00 2001 From: q66 Date: Sat, 26 Mar 2016 17:26:37 +0000 Subject: [PATCH] fix the StreamMode enum --- ostd/io.hh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ostd/io.hh b/ostd/io.hh index df04a7b..1aac512 100644 --- a/ostd/io.hh +++ b/ostd/io.hh @@ -16,13 +16,12 @@ namespace ostd { enum class StreamMode { - read, write, append, - update = 1 << 2 + read = 0, write, append, read_u, write_u, append_u }; namespace detail { static const char *filemodes[] = { - "rb", "wb", "ab", nullptr, "rb+", "wb+", "ab+" + "rb", "wb", "ab", "rb+", "wb+", "ab+" }; }