forked from boostorg/regex
Improved error messages generated for thrown exceptions.
Suppressed "gcc -Wall -Wextra -pedantic" and "msvc /W4" warnings. Updated and rebuilt docs. [SVN r57451]
This commit is contained in:
@ -137,7 +137,7 @@ void test_deprecated(const char&, const test_regex_search_tag&)
|
||||
if(test_info<char>::syntax_options() & ~boost::regex::icase)
|
||||
return;
|
||||
try{
|
||||
boost::RegEx e(expression, test_info<char>::syntax_options() & boost::regex::icase);
|
||||
boost::RegEx e(expression, (test_info<char>::syntax_options() & boost::regex::icase) != 0);
|
||||
if(e.error_code())
|
||||
{
|
||||
BOOST_REGEX_TEST_ERROR("Expression did not compile when it should have done, error code = " << e.error_code(), char);
|
||||
@ -303,7 +303,7 @@ void test_deprecated(const char&, const test_invalid_regex_tag&)
|
||||
return;
|
||||
bool have_catch = false;
|
||||
try{
|
||||
boost::RegEx e(expression, test_info<char>::syntax_options() & boost::regex::icase);
|
||||
boost::RegEx e(expression, (test_info<char>::syntax_options() & boost::regex::icase) != 0);
|
||||
if(e.error_code())
|
||||
have_catch = true;
|
||||
}
|
||||
|
@ -12,7 +12,7 @@
|
||||
#include "test.hpp"
|
||||
|
||||
#ifdef BOOST_MSVC
|
||||
#pragma warning(disable:4127)
|
||||
#pragma warning(disable:4127 4428)
|
||||
#endif
|
||||
|
||||
void test_character_escapes()
|
||||
|
@ -172,6 +172,7 @@ void test_simple_repeats()
|
||||
TEST_REGEX_SEARCH("^a{0,1}?$", perl, "aaaaa", match_default, make_array(-2, -2));
|
||||
TEST_REGEX_SEARCH("^(?:a){0,1}?$", perl, "aaaaa", match_default, make_array(-2, -2));
|
||||
TEST_REGEX_SEARCH("^a(?:bc)?", perl, "abcbc", match_any|match_all, make_array(-2, -2));
|
||||
test_simple_repeats2();
|
||||
}
|
||||
|
||||
void test_simple_repeats2()
|
||||
|
Reference in New Issue
Block a user