Visual Studio 2013上的一个奇怪的警告,我不明白。这是一个代码示例:
class Base : General::Updatable, virtual public sf::Drawable, public Input::Handler
{
public:
Base();
Base(sf::Vector2i size, sf::Vector2i position);
virtual ~Base() = 0;
virtual void Update(sf::Time delta) override = 0;
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const override = 0;
protected:
sf::Vector2i size;
sf::Vector2i position;
};
General::Interface::Window::Base::Base(sf::Vector2i size, sf::Vector2i position)
: size(size)
, position(position)
{
}
General::Interface::Window::Base::Base()
: Base(sf::Vector2i(0, 0), sf::Vector2i(0, 0)) // **** warning C4100
{
}
警告C4100:' $ initVBases' :未引用的形式参数 指示行。