This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

virtual templated functions?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]