summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include/bits/basic_ios.h
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/include/bits/basic_ios.h')
-rw-r--r--libstdc++-v3/include/bits/basic_ios.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libstdc++-v3/include/bits/basic_ios.h b/libstdc++-v3/include/bits/basic_ios.h
index 7d0e47ef3af..03b54b7198b 100644
--- a/libstdc++-v3/include/bits/basic_ios.h
+++ b/libstdc++-v3/include/bits/basic_ios.h
@@ -441,6 +441,11 @@ namespace std
void
_M_cache_locale(const locale& __loc);
+
+ // Internal state setter that won't throw, only set the state bits.
+ // Used to guarantee we don't throw when setting badbit.
+ void
+ _M_setstate(iostate __state) { _M_streambuf_state |= __state; }
};
} // namespace std
OpenPOWER on IntegriCloud