Skip to content

Commit ef6229f

Browse files
committed
fix windows build issues
1 parent 370ab37 commit ef6229f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

cucumber_cpp/library/tag_expression/TagExpressionParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ namespace cucumber_cpp::library::tag_expression
4444
expressionsStr += *expr;
4545
}
4646

47-
throw TagExpressionError(std::format("{}: Too few operands (expressions=\{{}})", token.keyword, expressionsStr));
47+
throw TagExpressionError(std::format(R"({}: Too few operands (expressions={{{}}}))", token.keyword, expressionsStr));
4848
}
4949
};
5050

cucumber_cpp/library/tag_expression/Token.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ namespace cucumber_cpp::library::tag_expression
5555
TokenType type;
5656
};
5757

58-
constexpr Token OR{ "or", 0, Associative::left, TokenType::operator_ };
59-
constexpr Token AND{ "and", 1, Associative::left, TokenType::operator_ };
60-
constexpr Token NOT{ "not", 2, Associative::right, TokenType::operator_ };
61-
constexpr Token OPEN_PARENTHESIS{ "(", -2, std::nullopt };
62-
constexpr Token CLOSE_PARENTHESIS{ ")", -1, std::nullopt };
58+
inline const Token OR{ "or", 0, Associative::left, TokenType::operator_ };
59+
inline const Token AND{ "and", 1, Associative::left, TokenType::operator_ };
60+
inline const Token NOT{ "not", 2, Associative::right, TokenType::operator_ };
61+
inline const Token OPEN_PARENTHESIS{ "(", -2, std::nullopt };
62+
inline const Token CLOSE_PARENTHESIS{ ")", -1, std::nullopt };
6363

6464
inline const std::map<std::string_view, const Token&> tokenMap{
6565
{ OR.keyword, OR },

0 commit comments

Comments
 (0)