Error std::to_string in c++

workspace
#1

Hi, i have this code in c++:

std::string DtFecha::aString (int arg){
std::string ss = std::to_string(arg);
return ss;
}

When i try to compile it, I get this error:

error: ‘to_string’ is not a member of ‘std’

The library #include is added. Any idea why is this happen?

Thanks.

0 Likes