Source code from this Stack Overflow question.
Some changes to get it to compile. My issue may have been a missing virtual function definition for clear().
Source code from this Stack Overflow question.
Some changes to get it to compile. My issue may have been a missing virtual function definition for clear().