minor Cleanup

This commit is contained in:
Attila Body 2020-01-31 15:15:32 +01:00
parent 642dc26314
commit 482d3b8248
4 changed files with 113 additions and 133 deletions

View file

@ -14,7 +14,7 @@ template<typename T> class Singleton {
public:
static T &Instance() { return *m_instance; }
template<typename ... Args>
static T &Instance(Args &&... args)
static T &Init(Args &&... args)
{
static T instance{ std::forward<Args>(args)... };
if(!m_instance)