diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-06-22 01:10:38 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-06-22 01:10:38 +0900 |
| commit | 07d270c87e6f9184aea4ca17eb26e466712e8db2 (patch) | |
| tree | 2dfbaa2e0d2ad0f38cb73098608f7d67a64320f8 /src/Exception.h | |
| parent | 126a4bde612eb0e6c48cf2f13ebe3eac45cc71a8 (diff) | |
Require -std=c++11 and use std::shared_ptr instead of SharedHandle
Diffstat (limited to 'src/Exception.h')
| -rw-r--r-- | src/Exception.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Exception.h b/src/Exception.h index e8fb76cb..e7a7ace6 100644 --- a/src/Exception.h +++ b/src/Exception.h @@ -38,8 +38,8 @@ #include "common.h" #include <string> +#include <memory> -#include "SharedHandle.h" #include "error_code.h" namespace aria2 { @@ -57,9 +57,9 @@ private: error_code::Value errorCode_; // Exception that this object wraps. Normally this cause_ is the // root cause of this exception. - SharedHandle<Exception> cause_; + std::shared_ptr<Exception> cause_; protected: - virtual SharedHandle<Exception> copy() const = 0; + virtual std::shared_ptr<Exception> copy() const = 0; public: Exception(const char* file, int line, const std::string& msg); |
