The same code is working fine on gcc 4.5.2 but when trying to compile it on gcc 4.1.2, I get the error ‘runtime_error’ was not declared in this scope.
‘runtime_error’ was not declared in this scope
I do
Visual Studio says that runtime_error should be defined in , so I'm guessing that GCC 4.1.2 is just out of date here.
runtime_error