mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 08:48:30 +01:00
Replace Yes/No with int/char
This commit is contained in:
@@ -17,16 +17,13 @@ class VariantAttorney {
|
||||
template <typename TClient>
|
||||
struct ResultOfGetData {
|
||||
protected: // <- to avoid GCC's "all member functions in class are private"
|
||||
typedef char Yes[1];
|
||||
typedef char No[2];
|
||||
|
||||
static Yes& probe(const VariantData*);
|
||||
static No& probe(VariantData*);
|
||||
static int probe(const VariantData*);
|
||||
static char probe(VariantData*);
|
||||
|
||||
static TClient& client;
|
||||
|
||||
public:
|
||||
typedef typename conditional<sizeof(probe(client.getData())) == sizeof(Yes),
|
||||
typedef typename conditional<sizeof(probe(client.getData())) == sizeof(int),
|
||||
const VariantData*, VariantData*>::type type;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user