[PATCH] D49863: [istream] Fix error flags and exceptions propagated from input stream operations
Marshall Clow via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 2 13:30:24 PDT 2019
mclow.lists accepted this revision.
mclow.lists added a comment.
I'm OK with this. I think, strictly speaking, that libc++ is following the standard, and everyone else is not - but what everyone else is doing makes sense.
================
Comment at: libcxx/include/istream:365
__input_arithmetic(basic_istream<_CharT, _Traits>& __is, _Tp& __n) {
-#ifndef _LIBCPP_NO_EXCEPTIONS
- try
+ ios_base::iostate __state = ios_base::goodbit;
+ typename basic_istream<_CharT, _Traits>::sentry __s(__is);
----------------
lichray wrote:
> I like `auto` just FYI :)
You may like `auto`, but C++03 does not.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D49863/new/
https://reviews.llvm.org/D49863
More information about the cfe-commits
mailing list