This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
virtual templated functions?
- To: gcc at gcc dot gnu dot org
- Subject: virtual templated functions?
- From: Tom Lien <lient at mrs dot umn dot edu>
- Date: Sun, 11 Jun 2000 21:30:04 -0500 (CDT)
I am trying to do something like this:
class Item {
template<class target_iter>
virtual void use(target_iter begin, target_iter end) = 0;
};
g++ says that this is an invalid use of 'virtual' in template declaration.
Is this a language limitation? Is it just not implemented yet? If this
is an impossible feature is there a workaround or alternative that could
serve my needs as well?
Thanks
-------------------------------------------------
Tom Lien
http://www.mrs.umn.edu/~lient --The Funk Palace
How's My Programming? Call 1-800-DEV-NULL