Fixed JsonVariant::is<bool>() that was incorrectly returning false (issue #214)

This commit is contained in:
Benoit Blanchon
2016-01-31 21:56:04 +01:00
parent 01924618bd
commit 6a608d4b49
5 changed files with 49 additions and 4 deletions

View File

@ -174,10 +174,8 @@ bool JsonVariant::is<signed long>() const;
template <> // in .cpp
bool JsonVariant::is<double>() const;
template <>
inline bool JsonVariant::is<bool>() const {
return _type == Internals::JSON_BOOLEAN;
}
template <> // int .cpp
bool JsonVariant::is<bool>() const;
template <>
inline bool JsonVariant::is<char const *>() const {