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