Try to fix gcc compilation error

This commit is contained in:
Milo Yip 2016-02-13 23:07:26 +08:00
parent 2a78b4da8c
commit 960324a95b

View File

@ -1082,7 +1082,7 @@ TEST(Value, ArrayHelperRangeFor) {
}
{
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, 10);
}