This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: virtual templated functions?
- To: Tom Lien <lient at mrs dot umn dot edu>
- Subject: Re: virtual templated functions?
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- Date: 12 Jun 2000 04:49:21 +0200
- Cc: gcc at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
- References: <Pine.OSF.4.21.0006112128450.22389-100000@cda.mrs.umn.edu>
Tom Lien <lient@mrs.umn.edu> writes:
| 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?
There is no such thing as a virtual template member function. Please,
consider asking on C++ specific forums. This list is for GCC
development.
Regards,
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com