Skip to content

Commit a06b5b1

Browse files
Avoid boost::optional::has_value() in tests. (#1455)
Use casting to `bool` instead. There is `has_value()` in the boost 1.69 listed as a dependency. On the other hand there are CI nodes with boost 1.65 without it. So there are no reasons to decrease compatibility. Relates-To: OLPEDGE-2845 Signed-off-by: Rustam Gamidov <ext-rustam.gamidov@here.com>
1 parent add59f1 commit a06b5b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/common/matchers/NetworkUrlMatchers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ MATCHER_P(HeadersContain, expected_header, "") {
100100
}
101101

102102
MATCHER_P(HeadersContainOptional, expected_optional, "") {
103-
if (!expected_optional.has_value()) {
103+
if (!expected_optional) {
104104
return true;
105105
}
106106
const auto& expected_header = expected_optional.value();

0 commit comments

Comments
 (0)