If you can't factor out the interface as a base class because you're not allowed to touch the code, just use a template.
Since all the functions have the same signature (that is, no parameters) you can use pointers to member functions in C++.
In reply to Re: Be grateful for Perl OO
by John M. Dlugosz
in thread Be grateful for Perl OO
by dragonchild
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |