mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 00:38:27 +01:00
Added operators == and != for two JsonVariants (issue #436)
This commit is contained in:
@@ -40,3 +40,18 @@ struct StringTraits<TString&, void> : StringTraits<TString> {};
|
||||
#if ARDUINOJSON_ENABLE_PROGMEM
|
||||
#include "FlashString.hpp"
|
||||
#endif
|
||||
|
||||
namespace ArduinoJson {
|
||||
namespace TypeTraits {
|
||||
template <typename T, typename Enable = void>
|
||||
struct IsString {
|
||||
static const bool value = false;
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
struct IsString<T, typename TypeTraits::EnableIf<
|
||||
Internals::StringTraits<T>::has_equals>::type> {
|
||||
static const bool value = Internals::StringTraits<T>::has_equals;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user