Fixed building on MSVC
This commit is contained in:
@@ -13299,9 +13299,12 @@ RegexMatcher::RegexMatcher(
|
||||
|
||||
bool RegexMatcher::match(std::string const &matchee) const
|
||||
{
|
||||
auto flags = std::regex::ECMAScript |
|
||||
std::regex::multiline; // ECMAScript is the default syntax
|
||||
// option anyway
|
||||
auto flags = std::regex::ECMAScript; // ECMAScript is the default syntax
|
||||
// option anyway
|
||||
#if !defined(_WIN32)
|
||||
flags |= std::regex::multiline;
|
||||
#endif
|
||||
|
||||
if (m_caseSensitivity == CaseSensitive::Choice::No) {
|
||||
flags |= std::regex::icase;
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ TEST_CASE("t00056", "[test-case][class]")
|
||||
src, IsConceptRequirement(_A("iterable<T>"), "container.end()"));
|
||||
|
||||
#ifdef _MSC_VER
|
||||
REQUIRE_THAT(puml,
|
||||
REQUIRE_THAT(src,
|
||||
IsConceptRequirement(
|
||||
_A("convertible_to_string<T>"), "std::string{s}"));
|
||||
#else
|
||||
@@ -162,7 +162,7 @@ TEST_CASE("t00056", "[test-case][class]")
|
||||
src, IsConceptRequirement(_A("iterable<T>"), "container.end()"));
|
||||
|
||||
#ifdef _MSC_VER
|
||||
REQUIRE_THAT(puml,
|
||||
REQUIRE_THAT(src,
|
||||
IsConceptRequirement(
|
||||
_A("convertible_to_string<T>"), "std::string{s}"));
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user