Added #include<stdexcept> for clang