Skip to content

Commit 96bdfd1

Browse files
committed
Use more typical syntax
1 parent 0d2300e commit 96bdfd1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

libcxx/include/istream

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,10 @@ public:
294294
basic_istream& getline(char_type* __s, streamsize __n, char_type __dlm);
295295

296296
basic_istream& ignore(streamsize __n = 1, int_type __dlm = traits_type::eof());
297-
template <class _Tp = char_type>
298-
inline _LIBCPP_HIDE_FROM_ABI_AFTER_V1 typename std::enable_if<is_same<_Tp, char>::value, basic_istream&>::type
299-
ignore(streamsize __n, char_type __delim) {
297+
// template <class _Tp = char_type,
298+
// class = typename enable_if<is_same<_Tp, char_type>::value>::type>
299+
template <class _Tp = char_type, __enable_if_t<is_same<_Tp, char_type>::value, int> = 0>
300+
inline _LIBCPP_HIDE_FROM_ABI_AFTER_V1 basic_istream& ignore(streamsize __n, char_type __delim) {
300301
return ignore(__n, traits_type::to_int_type(__delim));
301302
}
302303
int_type peek();

0 commit comments

Comments
 (0)