mirror of
https://github.com/microsoft/GSL.git
synced 2025-03-12 22:28:06 -04:00
captureing result of iterator comparisons to address -Wunused-comparison
This commit is contained in:
parent
5cf1610cfe
commit
432be4852c
@ -1102,8 +1102,8 @@ TEST(span_test, from_array_constructor)
|
||||
{
|
||||
span<int> s = a;
|
||||
span<int> s2 = b;
|
||||
EXPECT_DEATH(s.begin() == s2.begin(), deathstring);
|
||||
EXPECT_DEATH(s.begin() <= s2.begin(), deathstring);
|
||||
EXPECT_DEATH(bool _ = (s.begin() == s2.begin()), deathstring);
|
||||
EXPECT_DEATH(bool _ = (s.begin() <= s2.begin()), deathstring);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user