Skip to content

Commit

Permalink
COMMON: Remove <> from templated class constructor/destructor
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMcCoy committed Jan 2, 2025
1 parent 5ee1e14 commit 4f21ce0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/common/singleton.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ namespace Common {
template<class T>
class Singleton : boost::noncopyable {
private:
Singleton<T>(const Singleton<T> &);
Singleton<T> &operator=(const Singleton<T> &);
Singleton(const Singleton<T> &);
Singleton &operator=(const Singleton<T> &);

static T *_singleton;

Expand Down Expand Up @@ -107,8 +107,8 @@ class Singleton : boost::noncopyable {
T::destroyInstance();
}
protected:
Singleton<T>() { }
virtual ~Singleton<T>() { }
Singleton() { }
virtual ~Singleton() { }

typedef T SingletonBaseType;
};
Expand Down

0 comments on commit 4f21ce0

Please # to comment.