mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-10-28 19:52:02 +01:00
Try to fix gcc compilation error
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user