Fixed non-standard usage of mbtowcs (added std:: prefix).

[SVN r10421]
This commit is contained in:
John Maddock
2001-06-25 11:29:47 +00:00
parent 56447e1443
commit 2fd9ef66cc

View File

@ -152,6 +152,10 @@ istream& get_line(istream& is, nstring_type& s, char delim)
return is;
}
#ifdef BOOST_NO_STDC_NAMESPACE
namespace std{ using ::mbtowc; }
#endif
istream& get_line(istream& is, string_type& s, char delim)
{
nstring_type t;
@ -164,7 +168,7 @@ istream& get_line(istream& is, string_type& s, char delim)
int cchars;
while(i != j)
{
cchars = mbtowc(buf, i, j - i);
cchars = std::mbtowc(buf, i, j - i);
if(cchars == -1)
break;
if(cchars == 0)