Problem with 6.17.0 with default value using overloaded "|" operator
Created by: labodj
Hi, since 6.17.0 this code is not working, it does not compile because it's complaining about the ambiguity of | overloaded operator.
#include <Arduino.h>
#include <ArduinoJson.h>
void setup()
{
}
void loop()
{
const size_t capacity = JSON_OBJECT_SIZE(1) + 20;
DynamicJsonDocument doc(capacity);
const char *json = "{\"sensor\":\"gps\"}";
deserializeJson(doc, json);
const char *test = "test";
const char *sensor = doc["sensor"] | test; // "gps"
}
Commenting lines 30-37 in /src/ArduinoJson/Variant/VariantOperators.hpp solve this problem, but can cause other unexpected ones.