minor Cleanup
This commit is contained in:
parent
642dc26314
commit
482d3b8248
4 changed files with 113 additions and 133 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue