diff options
author | Louis Dionne <ldionne@apple.com> | 2019-04-02 19:20:47 +0000 |
---|---|---|
committer | Louis Dionne <ldionne@apple.com> | 2019-04-02 19:20:47 +0000 |
commit | 6cd81263600d52786b2d2b49e21c8115bfd87039 (patch) | |
tree | 831ec3110ddc92d7893666fc1f1e47a5921b4d61 | |
parent | f401a749e11dfd4c3d40c9230fdfea3645419857 (diff) | |
download | bcm5719-llvm-6cd81263600d52786b2d2b49e21c8115bfd87039.tar.gz bcm5719-llvm-6cd81263600d52786b2d2b49e21c8115bfd87039.zip |
[libc++] Remove use of auto with actual type
For compatibility with C++03.
llvm-svn: 357512
-rw-r--r-- | libcxx/include/istream | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/include/istream b/libcxx/include/istream index e59ae2cc5ad..14a5fe12979 100644 --- a/libcxx/include/istream +++ b/libcxx/include/istream @@ -528,7 +528,7 @@ __input_c_string(basic_istream<_CharT, _Traits>& __is, _CharT* __p, size_t __n) typename basic_istream<_CharT, _Traits>::sentry __sen(__is); if (__sen) { - auto __s = __p; + _CharT* __s = __p; const ctype<_CharT>& __ct = use_facet<ctype<_CharT> >(__is.getloc()); ios_base::iostate __err = ios_base::goodbit; while (__s != __p + (__n-1)) @@ -568,7 +568,7 @@ inline _LIBCPP_INLINE_VISIBILITY basic_istream<_CharT, _Traits>& operator>>(basic_istream<_CharT, _Traits>& __is, _CharT (&__buf)[_Np]) { - auto __n = _Np; + size_t __n = _Np; if (__is.width() > 0) __n = _VSTD::min(size_t(__is.width()), _Np); return _VSTD::__input_c_string(__is, __buf, __n); |