Fixed return type of JsonArray::is<T>() and some others (issue #121)

This commit is contained in:
Benoit Blanchon
2015-09-19 16:25:18 +02:00
parent 155dd653e7
commit 7cf6fe6d62
7 changed files with 19 additions and 4 deletions

View File

@@ -182,7 +182,7 @@ inline T JsonArray::get(size_t index) const {
}
template <typename T>
inline T JsonArray::is(size_t index) const {
inline bool JsonArray::is(size_t index) const {
node_type *node = getNodeAt(index);
return node ? node->content.is<T>() : false;
}