void gdcmException::fatal(const char *from) throw() {
try {
- cerr << "Fatal: exception received in " << from
- << " while handling exception." << endl;
+ std::cerr << "Fatal: exception received in " << from
+ << " while handling exception." << std::endl;
exit(-1);
}
catch(...) {
try {
- cerr << "Fatal: exception received in Exception::fatal while handling exception."
- << endl;
+ std::cerr << "Fatal: exception received in Exception::fatal while handling exception."
+ << std::endl;
exit(-1);
}
catch(...) {
}
-ostream& operator<<(ostream &os, const gdcmException &e) {
+std::ostream& operator<<(std::ostream &os, const gdcmException &e) {
try {
- os << "Exception " << e.getName() << " thrown: " << e.getError() << endl;
+ os << "Exception " << e.getName() << " thrown: " << e.getError() << std::endl;
}
catch(...) {
- gdcmException::fatal("operator<<(ostream &, const gdcmException&)");
+ gdcmException::fatal("operator<<(std::ostream &, const gdcmException&)");
}
return os;
}