C++ Overridden method not getting called

后端 未结 8 1346
逝去的感伤
逝去的感伤 2021-02-13 11:20

Shape.h

namespace Graphics {
    class Shape {
    public:
        virtual void Render(Point point) {};
    };
}

Rect.h

namespa         


        
8条回答
  •  感动是毒
    2021-02-13 12:00

    You could try boost::ptr_vector

    http://www.boost.org/doc/libs/1_40_0/libs/ptr_container/doc/ptr_container.html

提交回复
热议问题