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

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

No files matched your search

+2 -4
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 {