mingw needs explicit conversion of enum member to int in conditional
This commit is contained in:
parent
66ebb47437
commit
96c6fd74b4
@ -1238,8 +1238,8 @@ public:
|
||||
Internal(const string& exp, int flags, int nm)
|
||||
: expr(exp,
|
||||
basic_regex<char>::flag_type(regex_constants::extended |
|
||||
((flags&SRE_ICASE) ? regex_constants::icase : 0) |
|
||||
((flags&SRE_NOSUB) ? regex_constants::nosubs : 0)
|
||||
((flags&SRE_ICASE) ? int(regex_constants::icase) : 0) |
|
||||
((flags&SRE_NOSUB) ? int(regex_constants::nosubs) : 0)
|
||||
)), ok(true), nmatch(nm) {
|
||||
}
|
||||
std::regex expr;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user