"achivement_system": невозможно создать экземпляр абстрактного класс

Делал код 1 в 1,но он работал. Что делать в такой ситуации? achv

#include <vector>
##include "../../singleton.hpp"
class achivement_system : public IGameEventListener2, public Singleton<achivement_system>
{
public:
    void RegisterSelf();
    void UnregisterSelf();
    void exist_table();
    void FireGameEvent(IGameEvent *event);
private:    
    //DT_CSPlayerResource g_Stats;
};```



singleton

#pragma once

template<typename T>
class Singleton
{
protected:
    Singleton() {}
    ~Singleton() {}

    Singleton(const Singleton&) = delete;
    Singleton& operator=(const Singleton&) = delete;

    Singleton(Singleton&&) = delete;
    Singleton& operator=(Singleton&&) = delete;

public:
    static T& Get()
    {
        static T inst{};
        return inst;
    }
};

Ответы (0 шт):