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