Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ambiguous overload for operator #1345

Open
pplanel opened this issue Jan 24, 2022 · 1 comment
Open

ambiguous overload for operator #1345

pplanel opened this issue Jan 24, 2022 · 1 comment
Labels
enhancement Feature Request

Comments

@pplanel
Copy link
Contributor

pplanel commented Jan 24, 2022

Basic Infos

Hardware

WiFimanager Branch/Release: Master

Esp8266/Esp32:

Hardware: esp01

Core Version: 2.4.0, staging

Description

On building the firmware 2 problems occour related to ambiguous overload for operator.

Opened a PR ( #1344 ) that fixes the problem on my environment, would appreciate guidance to generalize and get to know better the decisions on that scope.
Thanks

Settings in IDE

Module:
toolchain-xtensa@~2.100100.200706
framework-arduinoespressif8266@https://github.com/esp8266/Arduino.git

Additional libraries:

Sketch

#BEGIN
#include <Arduino.h>

void setup() {

}

void loop() {

}
#END

Debug Messages

.pio/libdeps/esp01_1m/WiFiManager/WiFiManager.cpp: In member function 'void WiFiManager::handleInfo()':
.pio/libdeps/esp01_1m/WiFiManager/WiFiManager.cpp:1907:19: error: ambiguous overload for 'operator!=' (operand types are 'String' and 'int')
 1907 |     if(infoids[i] != NULL) page += getInfoData(infoids[i]);
----
.pio/libdeps/esp01_1m/WiFiManager/WiFiManager.cpp: In member function 'boolean WiFiManager::validApPassword()':
.pio/libdeps/esp01_1m/WiFiManager/WiFiManager.cpp:3230:19: error: ambiguous overload for 'operator==' (operand types are 'String' and 'int')
 3230 |   if (_apPassword == NULL) _apPassword = "";
@tablatronix tablatronix added the enhancement Feature Request label Jan 24, 2022
@tablatronix tablatronix reopened this Feb 24, 2022
@tablatronix
Copy link
Collaborator

reverting

2.3.0 esp8266
error: 'class String' has no member named 'isEmpty'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature Request
Projects
None yet
Development

No branches or pull requests

2 participants