C++ why is my class still abstract?

前端 未结 1 449
南方客
南方客 2021-01-18 22:53

I\'m sure its something simple on my part, but I can\'t figure out why my compiler thinks one of my classes is abstract. Here\'s the situation:

I have an abstract ba

1条回答
  •  再見小時候
    2021-01-18 23:42

    Your base class declaration doesn't have an ampersand after sf::Shader:

    virtual void Draw(sf::RenderWindow &window, sf::Shader shader) = 0;
    

    The derived class has, hence it's a different overloaded function.

    0 讨论(0)
提交回复
热议问题