trap exceptions in the configure check for whether boost regex has icu support

This commit is contained in:
Dane Springmeyer 2011-03-12 02:46:52 +00:00
parent b8663b67e3
commit 578b434f4d

View file

@ -797,7 +797,14 @@ def boost_regex_has_icu(context):
int main() int main()
{ {
UnicodeString ustr; UnicodeString ustr;
try {
boost::u32regex pattern = boost::make_u32regex(ustr); boost::u32regex pattern = boost::make_u32regex(ustr);
}
// an exception is fine, still indicates support is
// likely compiled into regex
catch (...) {
return 0;
}
return 0; return 0;
} }