Skip to content

Commit

Permalink
* 增加一些可能会用到的vc6 crt
Browse files Browse the repository at this point in the history
  • Loading branch information
weolar committed Oct 22, 2016
1 parent ad46a4a commit e226aec
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions base/ostreamvc6.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,21 @@ ostream& operator<<(ostream& os, unsigned __int64 val)
return os;
}

basic_ostream<char, char_traits<char> > & __cdecl operator<< <char, char_traits<char> >(basic_ostream<char, char_traits<char> > & os, unsigned char const * str)
{
if (!str)
return os;

os << ((const char *)str);
return os;
}

basic_ostream<char, char_traits<char> > & __cdecl operator<<<char, char_traits<char> >(basic_ostream<char, char_traits<char> > & os, unsigned char c)
{
os << ((char)c);
return os;
}

}

#endif // USING_VC6RT

0 comments on commit e226aec

Please sign in to comment.