Polymorphic templated method

This is a discussion on Polymorphic templated method within the C++ Programming forums, part of the General Programming Boards category; I am making some simple objects for file I/O. I want one of the member functions to be templated, but ...

Polymorphic templated method

I am making some simple objects for file I/O. I want one of the member functions to be templated, but I also want it to be a pure virtual method, because the interface is defined in an abstract base class. Does anyone know how to do this? Thanks.