Added JsonValue::as<T>()

This commit is contained in:
Benoit Blanchon
2014-10-23 17:22:23 +02:00
parent 8947a6c9de
commit e4779512e6
7 changed files with 24 additions and 18 deletions

View File

@ -41,7 +41,7 @@ private:
template<typename T>
void elementAtIndexMustBe(int index, T expected)
{
EXPECT_EQ(expected, static_cast<T>(array[index]));
EXPECT_EQ(expected, array[index].as<T>());
}
};