I'm working on an application for ESP32 in C ++ using Eclipse. I use strings and need to use the "stoi()" function (c ++ 11), however when I use it I get the following
Code: Select all
error: 'stoi' was not declared in this scope
Thanks
Code: Select all
error: 'stoi' was not declared in this scope
Code: Select all
std::string x = "123";
int i = atoi(x.c_str());