How does one go about resolving a virtual class so that the STL class queue will be able to instantiate?
I need the virtual class so that a user may implement their own class to pass in as a reference. Any ideas?Code:#include <queue> class Foo { virtual int run() = 0; }; int main() { queue<Foo> fooQueue; }
Thanks in advance.
Ken