diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-03-20 21:42:09 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-03-20 21:42:09 +0900 |
| commit | f4e2c7f0603fdb0609bf163ee5ea683a44b98d69 (patch) | |
| tree | 18227134780ec9417ecc7b24969f35725a377e04 /src/SingletonHolder.h | |
| parent | f16511012e28d1303e300e695b310d01b6200c2c (diff) | |
Added JSON-RPC over WebSocket.
Wslay library must be placed under deps/wslay.
Diffstat (limited to 'src/SingletonHolder.h')
| -rw-r--r-- | src/SingletonHolder.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/SingletonHolder.h b/src/SingletonHolder.h index e6664bd0..7f8e2d69 100644 --- a/src/SingletonHolder.h +++ b/src/SingletonHolder.h @@ -40,25 +40,25 @@ namespace aria2 { template<typename T> class SingletonHolder { private: - static T instance_; + static T* instance_; SingletonHolder() {} public: ~SingletonHolder() {} - static T& instance() + static T* instance() { return instance_; } - static void instance(T& instance) + static void instance(T* instance) { instance_ = instance; } }; template<typename T> -T SingletonHolder<T>::instance_; +T* SingletonHolder<T>::instance_ = 0; } // namespace aria2 |
