summaryrefslogtreecommitdiff
path: root/src/Exception.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-02-08 15:53:45 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-02-08 15:53:45 +0000
commit1b7c1982896dba1d38e1fe84ba9660996607f5f9 (patch)
treed12047cb37ded1e18d4d5b97844412538beb19ff /src/Exception.cc
parentd82e183d346375ac8a58a298a58728be615f947e (diff)
2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Removed "using namespace std;" from all sources. Appended std:: prefix to c++ standard classes. Included string.h where mem* function are used.
Diffstat (limited to 'src/Exception.cc')
-rw-r--r--src/Exception.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Exception.cc b/src/Exception.cc
index 45430495..47beb3f5 100644
--- a/src/Exception.cc
+++ b/src/Exception.cc
@@ -33,8 +33,11 @@
*/
/* copyright --> */
#include "Exception.h"
+#include <ostream>
-ostream& operator<<(ostream& o, const Exception& e)
+namespace aria2 {
+
+std::ostream& operator<<(std::ostream& o, const Exception& e)
{
o << e.getMsg() << "\n";
for(Exception* cause = e.getCause(); cause; cause = cause->getCause()) {
@@ -42,3 +45,5 @@ ostream& operator<<(ostream& o, const Exception& e)
}
return o;
}
+
+} // namespace aria2