File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -294,9 +294,10 @@ public:
294
294
basic_istream& getline (char_type* __s, streamsize __n, char_type __dlm);
295
295
296
296
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) {
300
301
return ignore (__n, traits_type::to_int_type (__delim));
301
302
}
302
303
int_type peek ();
You can’t perform that action at this time.
0 commit comments