diff --git a/test/regress/regress.cpp b/test/regress/regress.cpp index 341f0ff9..e6bb98af 100644 --- a/test/regress/regress.cpp +++ b/test/regress/regress.cpp @@ -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)