forked from boostorg/config
Header <regex> is finally working (probably) in gcc-4.9.
Add better tests for it as well.
This commit is contained in:
@@ -18,7 +18,12 @@ int test()
|
||||
{
|
||||
using std::regex;
|
||||
using std::wregex;
|
||||
return 0;
|
||||
|
||||
regex e("\\d+");
|
||||
wregex we(L"\\s+");
|
||||
std::string s("123456");
|
||||
std::wstring ws(L"123456");
|
||||
return regex_match(s, e) && regex_match(ws, we) ? 0 : 1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user