diff options
Diffstat (limited to 'libcxx/include/ios')
| -rw-r--r-- | libcxx/include/ios | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libcxx/include/ios b/libcxx/include/ios index 96e84eb3835..ce4e1769f2f 100644 --- a/libcxx/include/ios +++ b/libcxx/include/ios @@ -330,6 +330,15 @@ public: void __set_badbit_and_consider_rethrow(); void __set_failbit_and_consider_rethrow(); + _LIBCPP_INLINE_VISIBILITY + void __setstate_nothrow(iostate __state) + { + if (__rdbuf_) + __rdstate_ |= __state; + else + __rdstate_ |= __state | ios_base::badbit; + } + protected: _LIBCPP_INLINE_VISIBILITY ios_base() {// purposefully does no initialization |

