The same code works fine on gcc 4.5.2, but when I try to compile it on gcc 4.1.2 I get the error message 'runtime_error' was not declared in this scope .
I have
#include <stdexcept>
Is this a problem with gcc 4.1.2?
Code excerpt
// Constructor if (resource cannot be acquired) throw std::runtime_error("Blah Blah");
c ++ gcc linux
Dat chu
source share