mirror of
https://github.com/boostorg/regex.git
synced 2025-07-17 14:22:08 +02:00
Fixed non-standard usage of mbtowcs (added std:: prefix).
[SVN r10421]
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user