Turn off testing wide character regexes when not appropriate.

This commit is contained in:
Edward Diener
2020-04-19 16:01:21 -04:00
parent 31646aefa7
commit f307ef8353
3 changed files with 10 additions and 11 deletions

View File

@ -68,6 +68,8 @@ void test_captures(const std::string& regx, const std::string& text, T& expected
}
}
}
#if !defined(BOOST_NO_WREGEX)
std::wstring wre(regx.begin(), regx.end());
std::wstring wtext(text.begin(), text.end());
@ -89,6 +91,8 @@ void test_captures(const std::string& regx, const std::string& text, T& expected
}
}
}
#endif
#ifdef BOOST_HAS_ICU
boost::u32regex ure = boost::make_u32regex(regx);

View File

@ -106,7 +106,9 @@ void test_named_subexpressions(charT)
int cpp_main( int , char* [] )
{
test_named_subexpressions(char(0));
#if !defined(BOOST_NO_WREGEX)
test_named_subexpressions(wchar_t(0));
#endif
return 0;
}