You are viewing an older revision! See the latest version
Compiler Error 349
no operator "==" matches these operands (E349)
main.cpp
#include "mbed.h"
#include <string>
int main() {
int a = 1;
std::string b = "2";
if (a == b) { // <---- no operator "==" matches these operands
a = 2;
};
}
This means there is no way for a to be compared to b. It may be possible to make the operands the same type.