From f4e2c7f0603fdb0609bf163ee5ea683a44b98d69 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 20 Mar 2012 21:42:09 +0900 Subject: Added JSON-RPC over WebSocket. Wslay library must be placed under deps/wslay. --- src/SingletonHolder.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/SingletonHolder.h') 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 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 -T SingletonHolder::instance_; +T* SingletonHolder::instance_ = 0; } // namespace aria2 -- cgit