@@ -110,7 +110,7 @@ namespace Concurrency { namespace streams
110
110
{
111
111
public:
112
112
113
- typedef std ::char_traits<CharType> traits;
113
+ typedef Concurrency::streams ::char_traits<CharType> traits;
114
114
typedef typename traits::int_type int_type;
115
115
typedef typename traits::pos_type pos_type;
116
116
typedef typename traits::off_type off_type;
@@ -483,7 +483,7 @@ namespace Concurrency { namespace streams
483
483
class _type_parser_base
484
484
{
485
485
public:
486
- typedef typename std ::char_traits<CharType>::int_type int_type;
486
+ typedef typename ::concurrency::streams ::char_traits<CharType>::int_type int_type;
487
487
488
488
_type_parser_base () { }
489
489
@@ -562,8 +562,8 @@ namespace Concurrency { namespace streams
562
562
{
563
563
public:
564
564
565
- typedef std:: char_traits<CharType> traits;
566
- typedef typename std:: char_traits<CharType>::int_type int_type;
565
+ typedef char_traits<CharType> traits;
566
+ typedef typename char_traits<CharType>::int_type int_type;
567
567
typedef typename traits::pos_type pos_type;
568
568
typedef typename traits::off_type off_type;
569
569
@@ -795,7 +795,7 @@ namespace Concurrency { namespace streams
795
795
796
796
auto update = [=] (int_type ch) mutable -> bool
797
797
{
798
- if ( ch == std ::char_traits<CharType>::eof () ) return false ;
798
+ if ( ch == ::concurrency::streams ::char_traits<CharType>::eof () ) return false ;
799
799
if ( ch == delim ) return false ;
800
800
801
801
_locals->outbuf [_locals->write_pos ] = static_cast <CharType>(ch);
@@ -847,7 +847,7 @@ namespace Concurrency { namespace streams
847
847
// Capture 'buffer' rather than 'helper' here due to VC++ 2010 limitations.
848
848
concurrency::streams::streambuf<CharType> buffer = helper ()->m_buffer ;
849
849
850
- typename std ::char_traits<CharType>::int_type req_async = concurrency::streams::char_traits<CharType>::requires_async ();
850
+ typename concurrency::streams ::char_traits<CharType>::int_type req_async = concurrency::streams::char_traits<CharType>::requires_async ();
851
851
852
852
std::shared_ptr<_read_helper> _locals = std::make_shared<_read_helper>();
853
853
@@ -868,9 +868,9 @@ namespace Concurrency { namespace streams
868
868
return target.putn (_locals->outbuf , _locals->write_pos ).then (after_putn);
869
869
};
870
870
871
- auto update = [=] (typename std ::char_traits<CharType>::int_type ch) mutable -> bool
871
+ auto update = [=] (typename concurrency::streams ::char_traits<CharType>::int_type ch) mutable -> bool
872
872
{
873
- if ( ch == std ::char_traits<CharType>::eof () ) return false ;
873
+ if ( ch == concurrency::streams ::char_traits<CharType>::eof () ) return false ;
874
874
if ( ch == ' \n ' ) return false ;
875
875
if ( ch == ' \r ' ) { _locals->saw_CR = true ; return true ; }
876
876
@@ -886,15 +886,15 @@ namespace Concurrency { namespace streams
886
886
};
887
887
888
888
auto return_false =
889
- [](pplx::task<typename std ::char_traits<CharType>::int_type>) -> pplx::task<bool >
889
+ [](pplx::task<typename concurrency::streams ::char_traits<CharType>::int_type>) -> pplx::task<bool >
890
890
{
891
891
return pplx::task_from_result (false );
892
892
};
893
893
894
894
auto update_after_cr =
895
- [=] (typename std ::char_traits<CharType>::int_type ch) mutable -> pplx::task<bool >
895
+ [=] (typename concurrency::streams ::char_traits<CharType>::int_type ch) mutable -> pplx::task<bool >
896
896
{
897
- if ( ch == std ::char_traits<CharType>::eof () ) return pplx::task_from_result (false );
897
+ if ( ch == concurrency::streams ::char_traits<CharType>::eof () ) return pplx::task_from_result (false );
898
898
if ( ch == ' \n ' )
899
899
return buffer.bumpc ().then (return_false);
900
900
@@ -905,10 +905,10 @@ namespace Concurrency { namespace streams
905
905
{
906
906
while ( buffer.in_avail () > 0 )
907
907
{
908
- #ifndef _MS_WINDOWS // Required by GCC, because std ::char_traits<CharType> is a dependent scope
908
+ #ifndef _MS_WINDOWS // Required by GCC, because concurrency::streams ::char_traits<CharType> is a dependent scope
909
909
typename
910
910
#endif
911
- std ::char_traits<CharType>::int_type ch;
911
+ concurrency::streams ::char_traits<CharType>::int_type ch;
912
912
913
913
if ( _locals->saw_CR )
914
914
{
@@ -1189,7 +1189,7 @@ pplx::task<ReturnType> concurrency::streams::_type_parser_base<CharType>::_parse
1189
1189
auto update = [=] (pplx::task<int_type> op) -> pplx::task<bool >
1190
1190
{
1191
1191
int_type ch = op.get ();
1192
- if ( ch == std ::char_traits<CharType>::eof () ) return pplx::task_from_result (false );
1192
+ if ( ch == concurrency::streams ::char_traits<CharType>::eof () ) return pplx::task_from_result (false );
1193
1193
bool accptd = accept_character (state, ch);
1194
1194
if (!accptd)
1195
1195
return pplx::task_from_result (false );
@@ -1247,7 +1247,7 @@ class type_parser<CharType,std::basic_string<CharType>> : public _type_parser_ba
1247
1247
private:
1248
1248
static bool _accept_char (std::shared_ptr<std::basic_string<CharType>> state, int_type ch)
1249
1249
{
1250
- if ( ch == std ::char_traits<CharType>::eof () || isspace (ch)) return false ;
1250
+ if ( ch == concurrency::streams ::char_traits<CharType>::eof () || isspace (ch)) return false ;
1251
1251
state->push_back (CharType (ch));
1252
1252
return true ;
1253
1253
}
@@ -1278,7 +1278,7 @@ class type_parser<CharType,int64_t> : public _type_parser_base<CharType>
1278
1278
1279
1279
static bool _accept_char (std::shared_ptr<_int64_state> state, int_type ch)
1280
1280
{
1281
- if ( ch == std ::char_traits<CharType>::eof ()) return false ;
1281
+ if ( ch == concurrency::streams ::char_traits<CharType>::eof ()) return false ;
1282
1282
if ( state->minus == 0 )
1283
1283
{
1284
1284
// OK to find a sign.
@@ -1657,7 +1657,7 @@ class type_parser<CharType,signed char> : public _type_parser_base<CharType>
1657
1657
[=](pplx::task<typename concurrency::streams::streambuf<CharType>::int_type> op) -> signed char
1658
1658
{
1659
1659
int_type val = op.get ();
1660
- if (val == std ::char_traits<CharType>::eof ())
1660
+ if (val == concurrency::streams ::char_traits<CharType>::eof ())
1661
1661
throw std::runtime_error (" reached end-of-stream while constructing a value" );
1662
1662
return static_cast <signed char >(val);
1663
1663
});
@@ -1686,7 +1686,7 @@ class type_parser<CharType,unsigned char> : public _type_parser_base<CharType>
1686
1686
[=](pplx::task<typename concurrency::streams::streambuf<CharType>::int_type> op) -> unsigned char
1687
1687
{
1688
1688
int_type val = op.get ();
1689
- if (val == std ::char_traits<CharType>::eof ())
1689
+ if (val == concurrency::streams ::char_traits<CharType>::eof ())
1690
1690
throw std::runtime_error (" reached end-of-stream while constructing a value" );
1691
1691
return static_cast <unsigned char >(val);
1692
1692
});
@@ -1715,7 +1715,7 @@ class type_parser<CharType,char> : public _type_parser_base<CharType>
1715
1715
[=](pplx::task<typename concurrency::streams::streambuf<CharType>::int_type> op) -> char
1716
1716
{
1717
1717
int_type val = op.get ();
1718
- if (val == std ::char_traits<CharType>::eof ())
1718
+ if (val == concurrency::streams ::char_traits<CharType>::eof ())
1719
1719
throw std::runtime_error (" reached end-of-stream while constructing a value" );
1720
1720
return char (val);
1721
1721
});
@@ -1735,7 +1735,7 @@ class type_parser<char,std::basic_string<wchar_t>> : public _type_parser_base<ch
1735
1735
private:
1736
1736
static bool _accept_char (std::shared_ptr<std::basic_string<char >> state, int_type ch)
1737
1737
{
1738
- if ( ch == std ::char_traits<char >::eof () || isspace (ch)) return false ;
1738
+ if ( ch == concurrency::streams ::char_traits<char >::eof () || isspace (ch)) return false ;
1739
1739
state->push_back (char (ch));
1740
1740
return true ;
1741
1741
}
@@ -1757,7 +1757,7 @@ class type_parser<signed char,std::basic_string<wchar_t>> : public _type_parser_
1757
1757
private:
1758
1758
static bool _accept_char (std::shared_ptr<std::basic_string<char >> state, int_type ch)
1759
1759
{
1760
- if ( ch == std ::char_traits<char >::eof () || isspace (ch)) return false ;
1760
+ if ( ch == concurrency::streams ::char_traits<char >::eof () || isspace (ch)) return false ;
1761
1761
state->push_back (char (ch));
1762
1762
return true ;
1763
1763
}
@@ -1779,7 +1779,7 @@ class type_parser<unsigned char,std::basic_string<wchar_t>> : public _type_parse
1779
1779
private:
1780
1780
static bool _accept_char (std::shared_ptr<std::basic_string<char >> state, int_type ch)
1781
1781
{
1782
- if ( ch == std ::char_traits<char >::eof () || isspace (ch)) return false ;
1782
+ if ( ch == concurrency::streams ::char_traits<char >::eof () || isspace (ch)) return false ;
1783
1783
state->push_back (char (ch));
1784
1784
return true ;
1785
1785
}
0 commit comments