* virtual templated functions?
@ 2000-06-11 19:30 Tom Lien
2000-06-11 19:50 ` Gabriel Dos Reis
0 siblings, 1 reply; 2+ messages in thread
From: Tom Lien @ 2000-06-11 19:30 UTC (permalink / raw)
To: gcc
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: virtual templated functions?
2000-06-11 19:30 virtual templated functions? Tom Lien
@ 2000-06-11 19:50 ` Gabriel Dos Reis
0 siblings, 0 replies; 2+ messages in thread
From: Gabriel Dos Reis @ 2000-06-11 19:50 UTC (permalink / raw)
To: Tom Lien; +Cc: gcc
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-06-11 19:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-06-11 19:30 virtual templated functions? Tom Lien
2000-06-11 19:50 ` Gabriel Dos Reis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).