forked from bblanchon/ArduinoJson
Fixed variant.is<nullptr_t>()
This commit is contained in:
@ -91,6 +91,16 @@ class VariantRefBase {
|
||||
is() const {
|
||||
return variantIsObject(_data);
|
||||
}
|
||||
#if ARDUINOJSON_HAS_NULLPTR
|
||||
//
|
||||
// bool is<nullptr_t> const;
|
||||
template <typename T>
|
||||
FORCE_INLINE
|
||||
typename enable_if<is_same<T, decltype(nullptr)>::value, bool>::type
|
||||
is() const {
|
||||
return variantIsNull(_data);
|
||||
}
|
||||
#endif
|
||||
|
||||
FORCE_INLINE bool isNull() const {
|
||||
return variantIsNull(_data);
|
||||
|
Reference in New Issue
Block a user