Try to fix gcc compilation error
This commit is contained in:
parent
2a78b4da8c
commit
960324a95b
@ -1082,7 +1082,7 @@ TEST(Value, ArrayHelperRangeFor) {
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (auto& v : const_cast<const Value&>(x).GetArray())
|
for (const auto& v : const_cast<const Value&>(x).GetArray())
|
||||||
EXPECT_EQ(i++, v.GetInt());
|
EXPECT_EQ(i++, v.GetInt());
|
||||||
EXPECT_EQ(i, 10);
|
EXPECT_EQ(i, 10);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user