I am using Code :: Blocks 16.01 and running the following code causes an error : 'to_string' was not declared in this area
#include <iostream>
#include <string>
using namespace std;
int main() {
long int i = 10000000;
cout << to_string(i);
return 0;
}
Note. Already noted "Have g ++ follow the C ++ 11 ISO C ++ standard" in the compiler flags.
source
share