forked from boostorg/regex
Tentative fix for msvc warnings.
See https://github.com/boostorg/regex/issues/61. Adds warning test case.
This commit is contained in:
@ -196,3 +196,8 @@ build-project ../example ;
|
||||
|
||||
# `quick` target (for CI)
|
||||
run quick.cpp ../build//boost_regex ;
|
||||
|
||||
compile test_warnings.cpp
|
||||
: <toolset>msvc:<warnings>all <toolset>msvc:<warnings-as-errors>on
|
||||
<toolset>gcc:<warnings>all <toolset>gcc:<warnings-as-errors>on
|
||||
<toolset>clang:<warnings>all <toolset>clang:<warnings-as-errors>on ;
|
||||
|
12
test/test_warnings.cpp
Normal file
12
test/test_warnings.cpp
Normal file
@ -0,0 +1,12 @@
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(disable:4820 4668)
|
||||
#endif
|
||||
|
||||
#include <boost/regex.hpp>
|
||||
|
||||
void test_proc()
|
||||
{
|
||||
std::string text, re;
|
||||
boost::regex exp(re);
|
||||
regex_match(text, exp);
|
||||
}
|
Reference in New Issue
Block a user